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