Select Git revision
svelte.config.js
-
Emmanuel Raviart authoredEmmanuel Raviart authored
svelte.config.js 666 B
import node from "@sveltejs/adapter-node"
import preprocess from "svelte-preprocess"
/** @type {import('@sveltejs/kit').Config} */
const svelteKitConfig = {
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: node({
precompress: true,
}),
csrf: {
// Disabling is required for authentication.
checkOrigin: false,
},
},
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
preprocess: [preprocess({})],
}
export default svelteKitConfig