Skip to content

Commit

Permalink
be normal for local dev
Browse files Browse the repository at this point in the history
  • Loading branch information
rvcas committed Nov 21, 2023
1 parent b138781 commit d2e5831
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -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
),
],
});

0 comments on commit d2e5831

Please sign in to comment.