fastapi-svelte-template/frontend/svelte.config.js

17 lines
428 B
JavaScript
Raw Normal View History

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'
})
}
};
export default config;