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

Code-split SSR routes #25

Open
geoffrich opened this issue Jan 8, 2022 · 0 comments
Open

Code-split SSR routes #25

geoffrich opened this issue Jan 8, 2022 · 0 comments

Comments

@geoffrich
Copy link
Owner

Follow up to #6. The SvelteKit PR linked in that issue also added code-splitting of server routes, in addition to overhauling the adapter API. It seems like code splitting is only implemented for the Netlify adapter at time of writing, but it would be nice to have this in Azure as well.

The adapter also takes a split configuration setting for the adapter to configure if the app is code-split or not. I believe this is due to the edge case of the adapter falling back to HTTP if the route is not included in the function.

This will introduce a lot of complexity in the generated route config, but could lead to smaller individual Azure functions.

Netlify adapter implementation: https://github.com/sveltejs/kit/blob/f89fb524f851b794cceba4a91864d127dc3948ee/packages/adapter-netlify/index.js#L70

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

No branches or pull requests

1 participant