fix __isDev regression because of new vite static build

This commit is contained in:
dswbx
2025-01-18 09:20:57 +01:00
parent ad61770ef4
commit ebd4565166
2 changed files with 2 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
"type": "module",
"sideEffects": false,
"bin": "./dist/cli/index.js",
"version": "0.6.0-rc.10",
"version": "0.6.0-rc.11",
"description": "Lightweight Firebase/Supabase alternative built to run anywhere — incl. Next.js, Remix, Astro, Cloudflare, Bun, Node, AWS Lambda & more.",
"homepage": "https://bknd.io",
"repository": {

View File

@@ -7,7 +7,7 @@ import { devServerConfig } from "./src/adapter/vite/dev-server-config";
// https://vitejs.dev/config/
export default defineConfig({
define: {
__isDev: "1"
__isDev: process.env.NODE_ENV === "production" ? "0" : "1"
},
clearScreen: false,
publicDir: "./src/ui/assets",