diff --git a/src/web/server.ts b/src/web/server.ts index 0be07b2d8b..166e17b07a 100644 --- a/src/web/server.ts +++ b/src/web/server.ts @@ -42,6 +42,9 @@ app.use('/assets', express.static(`${__dirname}/assets`, { maxAge: ms('7 days') })); +/** + * ServiceWroker + */ app.get(/^\/sw\.(.+?)\.js$/, (req, res) => res.sendFile(`${__dirname}/assets/sw.${req.params[0]}.js`)); /**