-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
May I ask why don't usegenerateStaticParams() #674
Comments
First, "https://.../posts" would not be a valid URL. But the main server is indeed that the data is read from local sources. Each page load will also update the view counter |
https://nextjs.org/docs/app/api-reference/functions/generate-static-params
|
@talpx0 You're right, you can retrieve the slug and set it with leerob.io/app/blog/[slug]/page.tsx Lines 10 to 13 in e9357c5
@PieterDePauw The URL can be valid in many ways for example using the |
@talpx0 That's my version of doing it. All the posts will be rendered during building time. Checkout my website https://tonywang.io if you're interested.
|
path "\app\blog[slug]\page.tsx"
Why doesn't it have to use generateStaticParams()? Is it because it reads from a local source?
The text was updated successfully, but these errors were encountered: