oops
This commit is contained in:
parent
5671f1c6a4
commit
cc0b9c6933
@ -49,8 +49,8 @@ const router = new Router();
|
|||||||
//#region static assets
|
//#region static assets
|
||||||
|
|
||||||
router.get('/assets/*', async ctx => {
|
router.get('/assets/*', async ctx => {
|
||||||
// 無圧縮スクリプトを用意するのは大変なので一時的に無効化
|
// 互換性のため
|
||||||
const path = process.env.NODE_ENV == 'production' ? ctx.path.replace('raw.js', 'min.js') : ctx.path.replace('min.js', 'raw.js');
|
const path = ctx.path.replace('.raw.js', '.js').replace('.min.js', '.js');
|
||||||
await send(ctx, path, {
|
await send(ctx, path, {
|
||||||
root: client,
|
root: client,
|
||||||
maxage: ms('7 days'),
|
maxage: ms('7 days'),
|
||||||
|
Loading…
Reference in New Issue
Block a user