Skip to content
Snippets Groups Projects
Select Git revision
  • c19854255aed9e959600258b5d96cd138badddbc
  • master default protected
  • maj-readme
  • update-budget-msg-2022
  • share-with-metadata
  • explications-resultats-macros-PLF2022
  • plf_fix
  • benoit-cty-master-patch-87290
  • activate-plf-2021
  • stats
  • switch-plf
  • carto
  • adapt-matomo
  • js-to-ts
  • nbre-part-logic
  • add-nbre-part
  • 1.0.0
17 results

next.config.js

Blame
  • svelte.config.js 562 B
    import adapter from "@sveltejs/adapter-node"
    import { vitePreprocess } from "@sveltejs/vite-plugin-svelte"
    
    /** @type {import('@sveltejs/kit').Config} */
    const config = {
      kit: {
        adapter: adapter({
          precompress: true,
        }),
    
        csrf: {
          // Disabling is required for authentication.
          // But CSRF check is done by csrfHandler.
          checkOrigin: false,
        },
      },
    
      // Consult https://kit.svelte.dev/docs/integrations#preprocessors
      // for more information about preprocessors
      preprocess: [vitePreprocess({})],
    }
    
    export default config