-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Update server-side-rendering.mdx and integrations-reference.mdx #7498
Update server-side-rendering.mdx and integrations-reference.mdx #7498
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
You can then choose to override the default on-demand rendering of `server` mode on any page or route by exporting `const prerender = true`: | ||
|
||
```astro title="src/pages/my-static-page.astro" ins={2} | ||
--- | ||
export const prerender = true; | ||
// ... | ||
--- | ||
<html> | ||
<!-- Static, pre-rendered page here... --> | ||
</html> | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The method for opting into pre-rendering in server
mode is described immediately below, and it seems to be redundant. So, I think this part can be safely removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call @morinokami ! Thank you!
Description (required)
Related issues & labels (optional)