-
Notifications
You must be signed in to change notification settings - Fork 27.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
Prerender Dynamic Pages #8291
Comments
We're working on a different solution for this. More soon. |
So is this like using // next.config.js
module.exports = {
exportPathMap: async function(
defaultPathMap,
{ dev, dir, outDir, distDir, buildId }
) {
return {
'/': { page: '/' },
'/about': { page: '/about' },
'/readme.md': { page: '/readme' },
'/p/hello-nextjs': { page: '/post', query: { title: 'hello-nextjs' } },
'/p/learn-nextjs': { page: '/post', query: { title: 'learn-nextjs' } },
'/p/deploy-nextjs': { page: '/post', query: { title: 'deploy-nextjs' } },
}
},
} Could we technically run I'm curious about this as i'm planning on supporting a multi language site while keeping SSR using the I'll probably stick to dynamic rendering and wait for the "different solution" listed above, as messing around with build files might not be worth the trouble. |
Is there any JS API to render a specific set of pages only instead of |
The fallback behavior should have you covered: Additionally: #11552 |
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. |
Feature request
Ability to prerender dynamic pages via opt-in.
Is your feature request related to a problem? Please describe.
I have a homepage, contact, and about page that pretty much stay the same over time but change with a headless CMS. It seems costly for visitors to have to wait for the API calls each time they're viewing something like a homepage or about page.
Describe the solution you'd like
Opt-in support of static pages
The text was updated successfully, but these errors were encountered: