Skip to content

Commit c07b2aa

Browse files
fix: TT-511 fix error when build to production
1 parent 7f0690f commit c07b2aa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ CMD npm run config && ${HOME}/time-tracker-ui/node_modules/.bin/ng serve --host
2020

2121
FROM development as build
2222
COPY .env .
23-
RUN npm run build
23+
RUN npm run config && npm run build
2424

2525

2626

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"config": "ts-node ./scripts/setenv.ts",
66
"preinstall": "npx npm-force-resolutions",
77
"ng": "ng",
8-
"start": "npm run config && ng serve",
9-
"build": "npm run config && ng build --prod",
8+
"start": "ng serve",
9+
"build": "ng build --prod",
1010
"test": "ng test",
1111
"test-headless": "ng test --browsers ChromeHeadless",
1212
"ci-test": "ng test --no-watch --no-progress --browsers ChromeHeadless",

0 commit comments

Comments
 (0)