svelte.config.js 776 B

12345678910111213141516171819202122
  1. import adapter from '@sveltejs/adapter-static';
  2. import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
  3. /** @type {import('@sveltejs/kit').Config} */
  4. const config = {
  5. // Consult https://svelte.dev/docs/kit/integrations
  6. // for more information about preprocessors
  7. preprocess: vitePreprocess(),
  8. compilerOptions: {
  9. warningFilter: (warning) => !warning.code.startsWith('a11y')
  10. },
  11. kit: {
  12. // adapter-auto only supports some environments, see https://svelte.dev/docs/kit/adapter-auto for a list.
  13. // If your environment is not supported, or you settled on a specific environment, switch out the adapter.
  14. // See https://svelte.dev/docs/kit/adapters for more information about adapters.
  15. adapter: adapter({ fallback: '404.html' })
  16. }
  17. };
  18. export default config;