kolja
kolja

Reputation: 547

Advantages of SvelteKit in an environment without NodeJS?

Does it have advantages in development or for the user to use SvelteKit instead of Svelte if no NodeJS can be used on the server?

If I understand it correctly from the documentation, at least no file-based routing can be used.
What would be the alternative for Svelte to load different content with parameters (/user/4) in a SPA?

SSR or SSG are not needed.

Upvotes: 1

Views: 738

Answers (1)

Dana Woodman
Dana Woodman

Reputation: 4522

You can run SvelteKit in non-node environments (e.g. CloudFlare Workers, etc).

If you are looking at building an SPA with Svelte, then I recommend SvelteKit with adapter-static and a fallback page (see here).

This will give you client-side routing and all the other benefits of using SvelteKit without doing SSR/SSG.

Upvotes: 2

Related Questions