2023-08-02 20:16:48 +01:00
|
|
|
import autoAdapter from '@sveltejs/adapter-auto';
|
|
|
|
|
import netlifyAdapter from '@sveltejs/adapter-netlify';
|
2023-08-02 19:44:28 +01:00
|
|
|
import { vitePreprocess } from '@sveltejs/kit/vite';
|
2023-08-02 19:35:27 +01:00
|
|
|
|
|
|
|
|
/** @type {import('@sveltejs/kit').Config} */
|
|
|
|
|
const config = {
|
|
|
|
|
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
|
|
|
|
|
// for more information about preprocessors
|
|
|
|
|
preprocess: [vitePreprocess({})],
|
|
|
|
|
|
|
|
|
|
kit: {
|
2023-08-02 20:16:48 +01:00
|
|
|
adapter:
|
|
|
|
|
process.env.ADAPTER === 'NETLIFY'
|
|
|
|
|
? netlifyAdapter({
|
2023-08-03 23:20:14 +01:00
|
|
|
edge: false,
|
|
|
|
|
split: true
|
2023-08-02 20:16:48 +01:00
|
|
|
})
|
2023-08-03 19:24:03 +01:00
|
|
|
: autoAdapter()
|
|
|
|
|
}
|
2023-08-02 19:35:27 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default config;
|