Skip to content

Commit 72666cb

Browse files
committed
chore: merge conflicts Refs: PL-240
1 parent 3e9c739 commit 72666cb

5 files changed

Lines changed: 4 additions & 348 deletions

File tree

Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ COPY --chown=default:root ./.git ./.git
2121
# ============================================================
2222
FROM appbase AS development
2323

24-
WORKDIR /servicemap-ui
25-
2624
# Set NODE_ENV to development in the development container
2725
ARG NODE_ENV=development
2826
ENV NODE_ENV $NODE_ENV

config/default.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
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",

scripts/update-runtime-env.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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');
2424
fs.mkdirSync(outputDir, { recursive: true });
2525

2626
const configurationFile = path.join(outputDir, configFile);

server/server.js

Lines changed: 0 additions & 342 deletions
This file was deleted.

0 commit comments

Comments
 (0)