-
Notifications
You must be signed in to change notification settings - Fork 26.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[NEXT-1049] use client
with generateStaticParams
will opt out of static generation
#46735
Comments
The Next.js specific exports like |
use client
with generateStaticParams
will opt out of static generationuse client
with generateStaticParams
will opt out of static generation
Added a note in the beta docs, and the new docs we're building which be much clearer in what circumstance each API is supported. |
Thanks @timneutkens and @delbaoliveira! :) |
@timneutkens I'm trying to migrate a Vite project to NextJs following this steps: https://nextjs.org/docs/app/building-your-application/upgrading/from-vite I created the page inside the app directory "src/app/[[...slug]]/page"
but when I try to run the project the same error happens. Error: Page "/[[...slug]]/page" is missing exported function "generateStaticParams()", which is required with "output: export" config. But since the page it is a client side, why should I add the generateStaticParams()? here is my next.config.js
|
@lazaro-contato I am not sure this is going to help you, but using the version |
This comment was marked as off-topic.
This comment was marked as off-topic.
Closing this issue since this was explained above! |
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Verify canary release
Provide environment information
Which area(s) of Next.js are affected? (leave empty if unsure)
App directory (appDir: true)
Link to the code that reproduces this issue
https://stackblitz.com/edit/vercel-next-js-n6ugu2?file=app/[param]/page.tsx
To Reproduce
yarn && yarn next build
/[param]
is always SSRDescribe the Bug
The
/[param]
page/component is server side rendered.Expected Behavior
The
/[param]
page/component should be SSG.Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
NEXT-1049
The text was updated successfully, but these errors were encountered: