Skip to content

Commit 1a12543

Browse files
committed
Handle empty redirects
1 parent d6d991a commit 1a12543

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ async function generateSSO({
5454
path.join(functionsDir, `${authFunc}.js`),
5555
)
5656

57+
config.redirects = config.redirects || []
5758
/** @type {NetlifyRedirect[]} */
5859
const gatedRedirects = config.redirects.map((redirect) => ({
5960
...redirect,

0 commit comments

Comments
 (0)