aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/controllers/client.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/controllers/client.ts b/server/controllers/client.ts
index f07e421b4..f5124c55b 100644
--- a/server/controllers/client.ts
+++ b/server/controllers/client.ts
@@ -12,6 +12,7 @@ const clientsRouter = express.Router()
12const distPath = join(root(), 'client', 'dist') 12const distPath = join(root(), 'client', 'dist')
13const assetsImagesPath = join(root(), 'client', 'dist', 'client', 'assets', 'images') 13const assetsImagesPath = join(root(), 'client', 'dist', 'client', 'assets', 'images')
14const manifestPath = join(root(), 'client', 'dist', 'manifest.json') 14const manifestPath = join(root(), 'client', 'dist', 'manifest.json')
15const serviceWorkerPath = join(root(), 'client', 'dist', 'ngsw-worker.js')
15const embedPath = join(distPath, 'standalone', 'videos', 'embed.html') 16const embedPath = join(distPath, 'standalone', 'videos', 'embed.html')
16const indexPath = join(distPath, 'index.html') 17const indexPath = join(distPath, 'index.html')
17 18
@@ -27,6 +28,7 @@ clientsRouter.use('/videos/embed', (req: express.Request, res: express.Response,
27 28
28// Static HTML/CSS/JS client files 29// Static HTML/CSS/JS client files
29clientsRouter.use('/manifest.json', express.static(manifestPath, { maxAge: STATIC_MAX_AGE })) 30clientsRouter.use('/manifest.json', express.static(manifestPath, { maxAge: STATIC_MAX_AGE }))
31clientsRouter.use('/ngsw-worker.js', express.static(serviceWorkerPath, { maxAge: STATIC_MAX_AGE }))
30clientsRouter.use('/client', express.static(distPath, { maxAge: STATIC_MAX_AGE })) 32clientsRouter.use('/client', express.static(distPath, { maxAge: STATIC_MAX_AGE }))
31clientsRouter.use('/client/assets/images', express.static(assetsImagesPath, { maxAge: STATIC_MAX_AGE })) 33clientsRouter.use('/client/assets/images', express.static(assetsImagesPath, { maxAge: STATIC_MAX_AGE }))
32 34