From 0f8db7083c2c00982910378c032bbf543e32a8d2 Mon Sep 17 00:00:00 2001 From: yushen Date: Fri, 30 Jan 2026 14:35:40 +0800 Subject: [PATCH] fix(gateway): serve PWA client under /client subpath Move static files from / to /client to avoid conflicts with WebSocket and existing HTTP endpoints. Update manifest, service worker, and HTML asset references accordingly. Co-Authored-By: Claude Opus 4.5 --- src/gateway/app.module.ts | 3 +-- src/gateway/public/index.html | 8 ++++---- src/gateway/public/manifest.json | 5 +++-- src/gateway/public/sw.js | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/gateway/app.module.ts b/src/gateway/app.module.ts index f8ccb625..03200ec5 100644 --- a/src/gateway/app.module.ts +++ b/src/gateway/app.module.ts @@ -13,8 +13,7 @@ const isDev = process.env.NODE_ENV !== "production"; imports: [ ServeStaticModule.forRoot({ rootPath: join(__dirname, "public"), - serveRoot: "/", - exclude: ["/api/(.*)", "/ws/(.*)"], + serveRoot: "/client", }), LoggerModule.forRoot({ pinoHttp: isDev diff --git a/src/gateway/public/index.html b/src/gateway/public/index.html index d4efa161..0cedd243 100644 --- a/src/gateway/public/index.html +++ b/src/gateway/public/index.html @@ -8,9 +8,9 @@ - - - + + +