diff --git a/packages/stdf/package.json b/packages/stdf/package.json index c75dac5..bacbb4b 100644 --- a/packages/stdf/package.json +++ b/packages/stdf/package.json @@ -142,7 +142,7 @@ "tailwindcss": "^3.4.0" }, "devDependencies": { - "@sveltejs/adapter-cloudflare": "^4.8.0", + "@sveltejs/adapter-auto": "^3.3.1", "@sveltejs/kit": "^2.11.1", "@sveltejs/package": "^2.3.7", "@sveltejs/vite-plugin-svelte": "^5.0.2", diff --git a/packages/stdf/svelte.config.ts b/packages/stdf/svelte.config.ts index 12f4c9d..0a48976 100644 --- a/packages/stdf/svelte.config.ts +++ b/packages/stdf/svelte.config.ts @@ -1,4 +1,4 @@ -import adapter from '@sveltejs/adapter-cloudflare'; +import adapter from '@sveltejs/adapter-auto'; import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'; import { Config } from '@sveltejs/kit'; @@ -8,18 +8,7 @@ const config: Config = { preprocess: vitePreprocess(), kit: { - adapter: adapter({ - // See below for an explanation of these options - routes: { - include: ['/*'], - exclude: [''] - }, - platformProxy: { - configPath: 'wrangler.toml', - environment: undefined, - persist: false - } - }) + adapter: adapter() } }; diff --git a/packages/stdf/vite.config.ts b/packages/stdf/vite.config.ts index 5e59d5a..c344438 100644 --- a/packages/stdf/vite.config.ts +++ b/packages/stdf/vite.config.ts @@ -4,16 +4,5 @@ import svgSprite from 'rollup-plugin-stdf-icon'; export default defineConfig({ plugins: [sveltekit(), svgSprite([{ inFile: 'src/assets/svgs', outFile: 'static/fonts', fileName: 'symbol' }])], - server: { hmr: true, host: '0.0.0.0', port: 8888 }, - build: { - rollupOptions: { - output: { - manualChunks: (id: string) => { - if (id.includes('node_modules')) { - return 'vendor/index'; - } - } - } - } - } + server: { hmr: true, host: '0.0.0.0', port: 8888 } });