๐Ÿ“ฆ huangsam / huangsam.github.io

๐Ÿ“„ svelte.config.js ยท 15 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15import adapter from '@sveltejs/adapter-static';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';

/** @type {import('@sveltejs/kit').Config} */
const config = {
  kit: {
    adapter: adapter({
      fallback: '404.html',
    }),
  },
  preprocess: vitePreprocess(),
};

export default config;