2023-05-20 14:16:48 +01:00
|
|
|
import adapter from '@sveltejs/adapter-node';
|
|
|
|
import { vitePreprocess } from '@sveltejs/kit/vite';
|
|
|
|
|
|
|
|
/** @type {import('@sveltejs/kit').Config} */
|
|
|
|
const config = {
|
|
|
|
preprocess: vitePreprocess(),
|
|
|
|
|
|
|
|
kit: {
|
2023-05-20 22:13:02 +01:00
|
|
|
adapter: adapter({
|
|
|
|
// Enable gzip and brotli compression of static assets and precompiled documents if not in development
|
|
|
|
precompress: process.env.NODE_ENV !== 'development'
|
|
|
|
})
|
2023-05-20 14:16:48 +01:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
export default config;
|