From d2e5831f92b1b596bb2cc1ab801509da28650fcc Mon Sep 17 00:00:00 2001 From: rvcas Date: Mon, 20 Nov 2023 22:18:13 -0500 Subject: [PATCH] be normal for local dev --- vite.config.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index e4b5173..66c0f4f 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,8 +1,13 @@ - import solid from "solid-start/vite"; import { defineConfig } from "vite"; import cloudflare from "solid-start-cloudflare-pages"; export default defineConfig({ - plugins: [solid({ adapter: cloudflare({}) })], + plugins: [ + solid( + process.env.NODE_ENV === "PRODUCTION" + ? { adapter: cloudflare({}) } + : undefined + ), + ], });