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
{{ message }}
Repository navigation
dynamic routes in app dir in nextjs13 not working #5522
I am using NextJs 13 with experimental feature of "appDir"
while deploying to firebase hosting, dynamic routes become static path.
for example :
path app/[slug]/page.jsx become http://example.web.app/[slug]
after successfully deployment, check http://your-domain.web.app/hello, you will see page not found but http://example.web.app/[slug] is working.
Is there an update? It's working, but I get a 404 error when I refresh the page. I searched for a solution but couldn't find one. Additionally, when copying the URL and sharing it with someone they click and get the same 404 error.
Activity
nerder commentedon Mar 21, 2023
Any update on this issue? Is Next13 actually supported as of now?
dominicdev commentedon Apr 25, 2023
any update?
AmritpalChera commentedon Apr 27, 2023
Hey, instead of creating a file called [slug].tsx or smt. Make a folder called [slug] in the app directory (experimental setup):
post
Handle NextJS 13.3 app directory (#5691)
Handle NextJS 13.3 app directory (firebase#5691)
Handle NextJS 13.3 app directory (#5691)
onurhan1337 commentedon Aug 28, 2023
Is there an update? It's working, but I get a 404 error when I refresh the page. I searched for a solution but couldn't find one. Additionally, when copying the URL and sharing it with someone they click and get the same 404 error.