You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The build works, but the nested directories created are not as (I) expected:
Note the directory named en_CA%2Fabout:
This is the build console output. Note the slug is passed to getStaticProps as a single string within an array (params { slug: [ 'en_CA/about' ] }):
What I think is expected behavior - let me know if I'm off here:
The directory structure should be created to match the the catch-all path
The slug value is passed either as an array of strings (as returned from getStaticPaths) OR as a single string (concatenated with /), but not a single string within an array.
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
vercel
locked as resolved and limited conversation to collaborators
Jan 30, 2022
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Thanks for the quick response to this. Unfortunately I don't think this is fully resolved:
On 9.2.1-canary.5,
With
exportTrailingSlash: true
innext.config.js
,With template
pages/[...slug].jsx
,The build works, but the nested directories created are not as (I) expected:
Note the directory named
en_CA%2Fabout
:This is the build console output. Note the slug is passed to
getStaticProps
as a single string within an array (params { slug: [ 'en_CA/about' ] }
):What I think is expected behavior - let me know if I'm off here:
getStaticPaths
) OR as a single string (concatenated with/
), but not a single string within an array.Originally posted by @dpfavand in #10173 (comment)
The text was updated successfully, but these errors were encountered: