File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
packages/entrypoint/scripts Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ const { argv } = require("./argv");
77
88const PRODUCTION_URL = "https://code.deth.net" ;
99const DEVELOPMENT_URL = "https://localhost:5001" ;
10+ const isProd = argv . production || process . env . CI === "true" ;
11+
12+ console . log ( "Is production build? " , isProd ) ;
1013
1114rmSync ( "./dist" , { recursive : true , force : true } ) ;
1215copySync ( "./public" , "./dist" ) ;
@@ -15,7 +18,7 @@ copySync("./public", "./dist");
1518let indexHtml = readFileSync ( "./dist/index.html" , "utf8" ) ;
1619indexHtml = indexHtml . replace (
1720 "{{APPLICATION_URL}}" ,
18- argv . production ? PRODUCTION_URL : DEVELOPMENT_URL
21+ isProd ? PRODUCTION_URL : DEVELOPMENT_URL
1922) ;
2023writeFileSync ( "./dist/index.html" , indexHtml , { encoding : "utf8" } ) ;
2124
You can’t perform that action at this time.
0 commit comments