Files
classroomio/svelte.config.js
T

23 lines
580 B
JavaScript
Raw Normal View History

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';
/** @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()
}
};
export default config;