Skip to content

Commit

Permalink
Normalize optional catch-all fallback: true page params
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Oct 2, 2020
1 parent 2a047a8 commit fb1bc66
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,12 @@ const nextServerlessLoader: loader.Loader = function () {
(!value || (
Array.isArray(value) &&
value.length === 1 &&
value[0] === 'index'
${
''
// fallback optional catch-all SSG pages have
// [[...paramName]] for the root path on Vercel
}
(value[0] === 'index' || value[0] === \`[[...\${key}]]\`)
))
) {
value = undefined
Expand Down

0 comments on commit fb1bc66

Please sign in to comment.