Server the manifest too
This commit is contained in:
parent
6583edee61
commit
5980a252a7
1 changed files with 2 additions and 0 deletions
|
@ -11,6 +11,7 @@ const clientsRouter = express.Router()
|
||||||
|
|
||||||
const distPath = join(root(), 'client', 'dist')
|
const distPath = join(root(), 'client', 'dist')
|
||||||
const assetsImagesPath = join(root(), 'client', 'dist', 'client', 'assets', 'images')
|
const assetsImagesPath = join(root(), 'client', 'dist', 'client', 'assets', 'images')
|
||||||
|
const manifestPath = join(root(), 'client', 'dist', 'client', 'manifest.json')
|
||||||
const embedPath = join(distPath, 'standalone', 'videos', 'embed.html')
|
const embedPath = join(distPath, 'standalone', 'videos', 'embed.html')
|
||||||
const indexPath = join(distPath, 'index.html')
|
const indexPath = join(distPath, 'index.html')
|
||||||
|
|
||||||
|
@ -26,6 +27,7 @@ clientsRouter.use('/videos/embed', (req: express.Request, res: express.Response,
|
||||||
|
|
||||||
// Static HTML/CSS/JS client files
|
// Static HTML/CSS/JS client files
|
||||||
clientsRouter.use('/client', express.static(distPath, { maxAge: STATIC_MAX_AGE }))
|
clientsRouter.use('/client', express.static(distPath, { maxAge: STATIC_MAX_AGE }))
|
||||||
|
clientsRouter.use('/client/manifest.json', express.static(manifestPath, { maxAge: STATIC_MAX_AGE }))
|
||||||
clientsRouter.use('/client/assets/images', express.static(assetsImagesPath, { maxAge: STATIC_MAX_AGE }))
|
clientsRouter.use('/client/assets/images', express.static(assetsImagesPath, { maxAge: STATIC_MAX_AGE }))
|
||||||
|
|
||||||
// 404 for static files not found
|
// 404 for static files not found
|
||||||
|
|
Loading…
Reference in a new issue