import adapter from '@sveltejs/adapter-node';
import { vitePreprocess } from '@sveltejs/kit/vite';

/** @type {import('@sveltejs/kit').Config} */
const config = {
	preprocess: vitePreprocess(),

	kit: {
		adapter: adapter({
      // Enable gzip and brotli compression of static assets and precompiled documents if not in development
      precompress: process.env.NODE_ENV !== 'development'
    })
	}
};

export default config;
