swパッケージに
This commit is contained in:
@@ -25,6 +25,7 @@ const _dirname = dirname(_filename);
|
||||
const staticAssets = `${_dirname}/../../../assets/`;
|
||||
const clientAssets = `${_dirname}/../../../../client/assets/`;
|
||||
const assets = `${_dirname}/../../../../../built/_client_dist_/`;
|
||||
const swAssets = `${_dirname}/../../../../../built/_sw_dist_/`;
|
||||
|
||||
// Init app
|
||||
const app = new Koa();
|
||||
@@ -100,7 +101,7 @@ router.get('/twemoji/(.*)', async ctx => {
|
||||
// ServiceWorker
|
||||
router.get('/sw.js', async ctx => {
|
||||
await send(ctx as any, `/sw.${config.version}.js`, {
|
||||
root: assets
|
||||
root: swAssets
|
||||
});
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user