From 0200e0958f6fdf3a9eeda17d5d45118152a3c178 Mon Sep 17 00:00:00 2001 From: Aaron Hammer Date: Sun, 16 Jun 2024 19:51:47 -0600 Subject: [PATCH] fixing deploy --- vite.config.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index 729a19b..8630a3f 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -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"], }, }, -}); +})