Skip to content

Commit fa59422

Browse files
committed
build:prod script tweak
1 parent 9d96178 commit fa59422

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"format": "biome format --write .",
1313
"check": "biome check .",
1414
"build": "bun run scripts/build.ts",
15-
"build:prod": "bun run scripts/build.ts BUN_ENV=production && workbox injectManifest workbox-config.json",
15+
"build:prod": "bun run scripts/build.ts ENV=production && workbox injectManifest workbox-config.json",
1616
"compile": "bun build --compile --minify --sourcemap --bytecode src/server/index.ts --outfile main",
1717
"dev": "vite",
1818
"start": "bun run src/server/index.ts"

scripts/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { Config, log, now, parseArg } from "@helpers";
66

77
const start = now();
88

9-
const isProd = Config.IS_PROD || (parseArg("BUN_ENV") ?? parseArg("NODE_ENV")) === Env.Production;
9+
const isProd = Config.IS_PROD || parseArg("ENV") === Env.Production;
1010

1111
const src = Path.ClientSrc;
1212
const outdir = Path.Public;

0 commit comments

Comments
 (0)