Closed RajendraAVerma closed 1 year ago
Any update on this issue? Is Next13 actually supported as of now?
any update?
Hey, instead of creating a file called [slug].tsx or smt. Make a folder called [slug] in the app directory (experimental setup):
post
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.
[REQUIRED] Environment info
firebase-tools: 11.23.0
Platform: Window
[REQUIRED] Test case
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
becomehttp://example.web.app/[slug]
You can see [slug] is consider as static page
[REQUIRED] Steps to reproduce
npx create-next-app@latest --experimental-app
app/[slug]/page.jsx
.firebase experiments:enable webframeworks
firebase init hosting
thenfirebase deploy
http://your-domain.web.app/hello
, you will see page not found buthttp://example.web.app/[slug]
is working.in
firebase.json
in
next.config.js
in
jsconfig.json
[REQUIRED] Expected behavior
It should generate dynamic routes.
[REQUIRED] Actual behavior
Dynamic routes not generated.