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

Exclude prerendered pages from serverless functions/workers #1197

Closed
Rich-Harris opened this issue Apr 24, 2021 · 0 comments · Fixed by #2931
Closed

Exclude prerendered pages from serverless functions/workers #1197

Rich-Harris opened this issue Apr 24, 2021 · 0 comments · Fixed by #2931
Labels
adapters - general Support for functionality general to all adapters feature request New feature or request

Comments

@Rich-Harris
Copy link
Member

Is your feature request related to a problem? Please describe.
There's no sense in shipping the code for routes that got prerendered; they will never be called on during SSR. We can't guarantee that of routes with dynamic parameters (we might have prerendered /blog/one and /blog/two but we might need /blog/[slug].svelte in order to render /blog/three in future), but we can for other cases. It's a small win but worth having.

Describe the solution you'd like
I have some half-baked ideas for what the API could look like but I should probably get back to writing my Svelte Summit talk before I explore all the ways in which those ideas are bad

How important is this feature to you?
It's a nice-to-have. The current situation is wasteful, but not egregiously so

@ignatiusmb ignatiusmb added adapters - general Support for functionality general to all adapters feature request New feature or request labels Aug 23, 2021
@Rich-Harris Rich-Harris mentioned this issue Dec 1, 2021
22 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
adapters - general Support for functionality general to all adapters feature request New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants