Compare commits

..

2 Commits

Author SHA1 Message Date
syuilo
81cc6f3104 2.16.2 2018-05-22 18:20:49 +09:00
syuilo
cc0b9c6933 oops 2018-05-22 18:19:02 +09:00
2 changed files with 3 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
{
"name": "misskey",
"author": "syuilo <i@syuilo.com>",
"version": "2.16.1",
"version": "2.16.2",
"clientVersion": "1.0.5657",
"codename": "nighthike",
"main": "./built/index.js",

View File

@@ -49,8 +49,8 @@ const router = new Router();
//#region static assets
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, {
root: client,
maxage: ms('7 days'),