Skip to content

Commit

Permalink
fix: vite config for cf
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickHeneise committed Nov 9, 2023
1 parent 9cf20fa commit 646f6bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
11 changes: 3 additions & 8 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand All @@ -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()
],
Expand Down
7 changes: 1 addition & 6 deletions wrangler.toml
Original file line number Diff line number Diff line change
@@ -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"
account_id = "271eeb53885906a3b50a8cb07c5f0763"

0 comments on commit 646f6bf

Please sign in to comment.