From 6df7c8932ab8accc38a713a8788b282c8ca8d66f Mon Sep 17 00:00:00 2001 From: J-onasJones Date: Fri, 7 Jun 2024 00:57:14 +0200 Subject: [PATCH] maybe fixed cf again --- svelte.config.js | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) 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