diff --git a/svelte.config.js b/svelte.config.js index adaf668..a9817d3 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -1,12 +1,10 @@ -import { vitePreprocess } from '@sveltejs/vite-plugin-svelte' -import adapter from '@sveltejs/adapter-cloudflare'; +import preprocess from 'svelte-preprocess'; +import cloudflare from '@sveltejs/adapter-cloudflare'; export default { - // Consult https://svelte.dev/docs#compile-time-svelte-preprocess - // for more information about preprocessors - preprocess: vitePreprocess(), - + preprocess: preprocess(), kit: { - adapter: adapter(), - } -} + adapter: cloudflare(), + target: '#svelte' // Ensure this matches your target in `src/app.html` + } +}; \ No newline at end of file