From 646f6bf95dc946546f26638a92178efeeedbd313 Mon Sep 17 00:00:00 2001 From: Patrick Heneise Date: Wed, 8 Nov 2023 22:21:31 -0500 Subject: [PATCH] fix: vite config for cf --- vite.config.js | 11 +++-------- wrangler.toml | 7 +------ 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/vite.config.js b/vite.config.js index b5b36be..2b7541f 100644 --- a/vite.config.js +++ b/vite.config.js @@ -2,7 +2,8 @@ import { defineConfig } from 'vite' import solid from 'solid-start/vite' import devtools from 'solid-devtools/vite' import solidSvg from 'vite-plugin-solid-svg' -import cloudflare from 'solid-start-cloudflare-workers' +// import cloudflare from 'solid-start-cloudflare-workers' +import cloudflare from 'solid-start-cloudflare-pages' export default defineConfig({ plugins: [ @@ -15,13 +16,7 @@ export default defineConfig({ autoname: true // e.g. enable autoname }), solid({ - adapter: cloudflare({ - envPath: true, - packagePath: true, - wranglerConfigPath: true, - buildCommand: '' - }), - preferStreaming: true + adapter: cloudflare({}) }), solidSvg() ], diff --git a/wrangler.toml b/wrangler.toml index 681ae58..c8e8f4e 100644 --- a/wrangler.toml +++ b/wrangler.toml @@ -1,8 +1,3 @@ name = "cdc-cy" compatibility_date = "2023-11-09" -account_id = "271eeb53885906a3b50a8cb07c5f0763" -main = "./dist/server.js" -type = "javascript" - -[site] -bucket= "./dist/public" \ No newline at end of file +account_id = "271eeb53885906a3b50a8cb07c5f0763" \ No newline at end of file