Production
Deploying
The default adapter by SvelteKit will automatically build the correct ouput based on the deployment environment (i.e., Vercel, Netlify, etc.). Follow the instructions below if you'd like to configure static deployments.
Static Builds
Finally, use the following settings when creating your project with your chosen deployment provider:
- Install Command:
npm i
- Build Command:
npm run build
- Output Directory:
build
Vercel
Add the following to the root of your project inside a vercel.json
file:
Netlify
Add the following to the root of your project inside a netlify.toml
file: