From 8dcdbddbfb4e7db74d81631ee66b62d7ec75b24e Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 1 Mar 2022 00:40:53 +0900 Subject: [PATCH] fix: use import assertion --- .node-version | 2 +- CHANGELOG.md | 3 +++ Dockerfile | 2 +- packages/backend/src/server/web/manifest.ts | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.node-version b/.node-version index 53a42214a..bf79505bb 100644 --- a/.node-version +++ b/.node-version @@ -1 +1 @@ -v16.13.2 +v16.14.0 diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c918ec53..38dce92cb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,9 @@ You should also include the user name that made the change. ## 12.x.x (unreleased) +### NOTE +このバージョンからNode v16.14.0以降が必要です + ### Changes - ノートの最大文字数を設定できる機能が廃止され、デフォルトで一律3000文字になりました diff --git a/Dockerfile b/Dockerfile index 9a651b6c2..e4959756e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:16.13.2-alpine3.15 AS base +FROM node:16.14.0-alpine3.15 AS base ENV NODE_ENV=production diff --git a/packages/backend/src/server/web/manifest.ts b/packages/backend/src/server/web/manifest.ts index db3e7a967..c2f29d523 100644 --- a/packages/backend/src/server/web/manifest.ts +++ b/packages/backend/src/server/web/manifest.ts @@ -1,5 +1,5 @@ import Koa from 'koa'; -import * as manifest from './manifest.json'; +import * as manifest from './manifest.json' assert { type: 'json' }; import { fetchMeta } from '@/misc/fetch-meta.js'; export const manifestHandler = async (ctx: Koa.Context) => {