Skip to content

Commit

Permalink
fixing deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Hammer authored and Aaron Hammer committed Jun 17, 2024
1 parent 0803c31 commit 0200e09
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import { defineConfig } from "@solidjs/start/config";

// https://ryanjc.com/blog/solidstart-cloudflare-pages/
export default defineConfig({
start: {
server: {
preset: "cloudflare-pages",
server: {
preset: "cloudflare-pages",
// We will need to enable CF Pages node compatiblity
// https://developers.cloudflare.com/workers/runtime-apis/nodejs/asynclocalstorage/
rollupConfig: {
external: ["__STATIC_CONTENT_MANIFEST", "node:async_hooks"],
},
},
});
})

0 comments on commit 0200e09

Please sign in to comment.