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", "type": "module",
"sideEffects": false, "sideEffects": false,
"bin": "./dist/cli/index.js", "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.", "description": "Lightweight Firebase/Supabase alternative built to run anywhere — incl. Next.js, Remix, Astro, Cloudflare, Bun, Node, AWS Lambda & more.",
"homepage": "https://bknd.io", "homepage": "https://bknd.io",
"repository": { "repository": {

View File

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