diff --git a/svelte.config.js b/svelte.config.js index 6f6a5d5..9c13ebd 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -3,22 +3,22 @@ import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'; /** @type {import('@sveltejs/kit').Config} */ const config = { - // Consult https://kit.svelte.dev/docs/integrations#preprocessors - // for more information about preprocessors - preprocess: vitePreprocess(), + // Consult https://kit.svelte.dev/docs/integrations#preprocessors + // for more information about preprocessors + preprocess: vitePreprocess(), - kit: { - // adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list. - // If your environment is not supported, or you settled on a specific environment, switch out the adapter. - // See https://kit.svelte.dev/docs/adapters for more information about adapters. - adapter: adapter({ + kit: { + // adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list. + // If your environment is not supported, or you settled on a specific environment, switch out the adapter. + // See https://kit.svelte.dev/docs/adapters for more information about adapters. + adapter: adapter({ pages: 'build', - assets: 'build', - fallback: undefined, - precompress: false, - strict: true + assets: 'build', + fallback: undefined, + precompress: false, + strict: true }) - } + } }; export default config; diff --git a/vite.config.ts b/vite.config.ts index bbf8c7d..c8842f0 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -2,5 +2,11 @@ import { sveltekit } from '@sveltejs/kit/vite'; import { defineConfig } from 'vite'; export default defineConfig({ - plugins: [sveltekit()] + plugins: [sveltekit()], + server: { + watch: { + useFsEvents: false, + usePolling: true + } + } });