Skip to content

Commit 053af08

Browse files
2 parents da7e601 + b78c2f8 commit 053af08

4 files changed

Lines changed: 7 additions & 6 deletions

File tree

src/App/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VITE_API_BASE_URL=APP_API_BASE_URL
1+
VITE_API_BASE_URL=http://127.0.0.1:8000

src/App/WebApp.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ WORKDIR /home/node/app
33

44
COPY ./package*.json ./
55

6-
RUN npm ci
6+
RUN npm ci --include=dev
77

88
COPY . .
99

src/App/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@
2929
"remark-gfm": "^4.0.1",
3030
"remark-supersub": "^1.0.0",
3131
"scheduler": "^0.27.0",
32-
"typescript": "^5.7.0",
33-
"web-vitals": "^5.2.0"
32+
"typescript": "^5.7.0"
3433
},
3534
"devDependencies": {
3635
"@testing-library/dom": "^10.4.1",

src/App/vite.config.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
import { defineConfig } from "vite";
22
import react from "@vitejs/plugin-react";
33

4+
const backendTarget = process.env.VITE_BACKEND_URL || "http://localhost:8000";
5+
46
export default defineConfig({
57
plugins: [react()],
68
server: {
79
port: 3000,
810
proxy: {
911
"/api": {
10-
target: "http://localhost:5000",
12+
target: backendTarget,
1113
changeOrigin: true,
1214
},
1315
"/history": {
14-
target: "http://localhost:5000",
16+
target: backendTarget,
1517
changeOrigin: true,
1618
},
1719
},

0 commit comments

Comments
 (0)