feat: add netlify adapter

This commit is contained in:
Levente Orban
2025-08-27 08:46:58 +02:00
parent 9e4260c6bd
commit 9e44eb442d
4 changed files with 71 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
import adapter from '@sveltejs/adapter-auto';
import adapter from '@sveltejs/adapter-netlify';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
/** @type {import('@sveltejs/kit').Config} */
@@ -8,10 +8,14 @@ const config = {
preprocess: vitePreprocess(),
kit: {
// adapter-auto only supports some environments, see https://svelte.dev/docs/kit/adapter-auto for a list.
// If your environment is not supported, or you settled on a specific environment, switch out the adapter.
// See https://svelte.dev/docs/kit/adapters for more information about adapters.
adapter: adapter()
// Using Netlify adapter for deployment
adapter: adapter({
// if you want to use 'split' mode, set this to 'split'
// and create a _redirects file with the redirects you want
// see "split" mode in https://github.com/sveltejs/kit/tree/main/packages/adapter-netlify
edge: false,
split: false
})
}
};