6 ms·
Well actually SvelteKit has a concept of “adapters” which can bundle your app for different targets (ex: netlify, vercel, or node). If you target running your a
by zffr 5y ago
Well actually SvelteKit has a concept of “adapters” which can bundle your app for different targets (ex: netlify, vercel, or node). If you target running your app on a node server, polka might be the default but it is trivial to replace with express
- lovasoa 5y agoNo, the "node" adapter only allows using polka. Unless you develop your own adapter, you are stuck with it.
- zffr 5y agoCheck out the docs: https://github.com/sveltejs/kit/tree/master/packages/adapter-node https://github.com/sveltejs/kit/tree/master/packages/adapter... They even show you how to set up an express server
- lovasoa 5y agoYou are right, I didn't know that it exported a raw handler you could use from another server.
- andrew_ 5y agoThe issue lies more with the fact that most users will use what's shipped as default. You see that habit in every large framework out there. And that's why it's important to ship reliable, stable defaults.
- slantyyz 5y agoIf the Svelte subreddit is any indicator, a lot of Sveltekit devs don't use the Sveltekit back end. Most like to use serverless and 3rd party services for things like authentication and data storage.