Update index.ts
This commit is contained in:
parent
e509b1f488
commit
e0b1d4239f
|
@ -62,7 +62,7 @@ router.get('/apple-touch-icon.png', async ctx => {
|
||||||
});
|
});
|
||||||
|
|
||||||
// ServiceWorker
|
// ServiceWorker
|
||||||
router.get(/^\/sw\.(.+?)\.js$/, async ctx => {
|
router.get(/^\/sw\.(.+?)(\.(de-DE|en-US|fr-FR|ja-(JP|KS)|pl-PL|es-ES|nl-NL))?\.js$/, async ctx => {
|
||||||
await send(ctx, `/assets/sw.${ctx.params[0]}.js`, {
|
await send(ctx, `/assets/sw.${ctx.params[0]}.js`, {
|
||||||
root: client
|
root: client
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue