Building SvelteKit for Node JS
SvelteKit is a powerful tool that is great for making all types of websites, with out of the box support for services like Vercel. In this tutorial you will learn how to setup up SvelteKit for Node JS to run on a platform like Digital Ocean.
Installing the Correct Adapter
Out of the box, Svelte comes with the auto adapter, to build your app for Node Js you will have to install adapter-node
.
npm i @sveltejs/adapter-node
Configuring Svelte
The svelte.config.js
contains all of your adapter settings to build for Node you can set up your file like this.