Select Git revision
svelte.config.js
-
Emmanuel Raviart authoredEmmanuel Raviart authored
svelte.config.js 689 B
import adapter from "@sveltejs/adapter-node"
import preprocess from "svelte-preprocess"
/** @type {import('@sveltejs/kit').Config} */
const config = {
kit: {
// By default, `npm run build` will create a standard Node app.
// You can create optimized builds for different platforms by
// specifying a different adapter
adapter: adapter({
precompress: true,
}),
csrf: {
// Disabling is required for authentication.
checkOrigin: false,
},
},
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
preprocess: [
preprocess({
postcss: true,
}),
],
}
export default config