Skip to content
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

make prerender configurable #1050

Merged
merged 3 commits into from
Dec 20, 2024
Merged

make prerender configurable #1050

merged 3 commits into from
Dec 20, 2024

Conversation

Rich-Harris
Copy link
Member

This PR tweaks prerender config. By default, everything is prerendered except /e/[slug], /apps, and /playground/[slug], but if PRERENDER=false then it will be disabled for everything except a few server routes.

This means you can do PRERENDER=false pnpm build and everything builds waaaaay faster, which is useful for debugging production issues locally.

Copy link

vercel bot commented Dec 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
svelte-dev ✅ Ready (Inspect) Visit Preview Dec 20, 2024 2:32am

@Rich-Harris
Copy link
Member Author

huh — prerendering by default meant a whole bunch of broken links just became apparent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant