File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,8 +21,6 @@ COPY --chown=default:root ./.git ./.git
2121# ============================================================
2222FROM appbase AS development
2323
24- WORKDIR /servicemap-ui
25-
2624# Set NODE_ENV to development in the development container
2725ARG NODE_ENV=development
2826ENV NODE_ENV $NODE_ENV
Original file line number Diff line number Diff line change @@ -97,8 +97,8 @@ function getVersion() {
9797 }
9898 // Use process.env for server-side
9999 return {
100- tag : s . REACT_APP_GIT_TAG ,
101- commit : s . REACT_APP_GIT_COMMIT ,
100+ tag : process . env . REACT_APP_GIT_TAG ,
101+ commit : process . env . REACT_APP_GIT_COMMIT ,
102102 } ;
103103}
104104
Original file line number Diff line number Diff line change 6363 "vitest" : " ^3.2.4"
6464 },
6565 "scripts" : {
66- "build" : " rm -rf dist && pnpm build:client && pnpm build:server && pnpm update-runtime-env " ,
66+ "build" : " rm -rf dist && pnpm update-runtime-env && pnpm build:client && pnpm build:server " ,
6767 "build:client" : " vite build --outDir dist/client --ssrManifest" ,
6868 "build:server" : " vite build --ssr server/server-entry.js --outDir dist/server" ,
6969 "dev" : " pnpm update-runtime-env && node server.mjs" ,
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ const configFile = USE_TEST_ENV ? 'test-env-config.js' : 'env-config.js';
2020
2121// Tests require the file directly from public/ (see src/setupTests.js).
2222// All other contexts write to dist/ — created if it doesn't exist yet (e.g. before first build in dev).
23- const outputDir = path . resolve ( process . cwd ( ) , USE_TEST_ENV ? 'public' : 'dist ') ;
23+ const outputDir = path . resolve ( process . cwd ( ) , 'public' ) ;
2424fs . mkdirSync ( outputDir , { recursive : true } ) ;
2525
2626const configurationFile = path . join ( outputDir , configFile ) ;
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments