svelte.config.js 734 B

1234567891011121314151617181920212223
  1. import adapter from '@sveltejs/adapter-static';
  2. import { vitePreprocess } from '@sveltejs/kit/vite';
  3. /** @type {import('@sveltejs/kit').Config} */
  4. const config = {
  5. kit: {
  6. // adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
  7. // If your environment is not supported or you settled on a specific environment, switch out the adapter.
  8. // See https://kit.svelte.dev/docs/adapters for more information about adapters.
  9. adapter: adapter({
  10. fallback: 'index.html', // may differ from host to host
  11. }),
  12. },
  13. onwarn: (warning, handler) => {
  14. if (warning.code.startsWith('a11y-')) {
  15. return;
  16. }
  17. handler(warning);
  18. },
  19. preprocess: vitePreprocess(),
  20. };
  21. export default config;