From 0cb114929c17a82ca3335a7fb7164dddbb85a65d Mon Sep 17 00:00:00 2001 From: Eugenius-Anonymous Date: Mon, 8 Jun 2026 16:13:15 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20correct=20public=20dir=20path=20for=20Do?= =?UTF-8?q?cker=20(dist/src=20=E2=86=92=20../../public)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/app.ts | 6 +++--- version.json | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/server/src/app.ts b/server/src/app.ts index 2b4e000..d700761 100644 --- a/server/src/app.ts +++ b/server/src/app.ts @@ -45,9 +45,9 @@ app.get('/api/health', (_req, res) => { }); // ─── Static files (production) ─────────────────────── -// In Docker, client dist is at /app/public -// Locally after build, resolve relative to compiled output -const publicDir = path.resolve(__dirname, '../public'); +// In Docker: __dirname = /app/dist/src → ../../public = /app/public +// Locally: __dirname = server/src → ../../public (not used in dev) +const publicDir = path.resolve(__dirname, '../../public'); app.use(express.static(publicDir)); // SPA fallback — serve index.html for all non-API routes diff --git a/version.json b/version.json index f145b3c..d0f722c 100644 --- a/version.json +++ b/version.json @@ -1,5 +1,5 @@ { "version": "1.0.0", - "build": "20260608-1607", - "buildDate": "2026-06-08T16:07:41.1459281+07:00" + "build": "20260608-1610", + "buildDate": "2026-06-08T16:10:55.1482171+07:00" } \ No newline at end of file