From 82c5ab07b26b30b9f7a132b8a84a8917f6772640 Mon Sep 17 00:00:00 2001 From: Guyutongxue Date: Mon, 30 Dec 2024 11:02:01 +0800 Subject: [PATCH] add import attribute --- api/v2/data/[id].js | 8 ++++---- api/v2/images/[id].js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/api/v2/data/[id].js b/api/v2/data/[id].js index 65aa2ff..ee1a534 100644 --- a/api/v2/data/[id].js +++ b/api/v2/data/[id].js @@ -1,8 +1,8 @@ // @ts-check -import characters_ from "../../../data/characters.json"; -import actionCards_ from "../../../data/action_cards.json"; -import entities_ from "../../../data/entities.json"; -import keywords_ from "../../../data/keywords.json"; +import characters_ from "../../../data/characters.json" with { type: "json" }; +import actionCards_ from "../../../data/action_cards.json" with { type: "json" }; +import entities_ from "../../../data/entities.json" with { type: "json" }; +import keywords_ from "../../../data/keywords.json" with { type: "json" }; /** * @typedef {import("@gi-tcg/static-data").CharacterRawData} CharacterRawData diff --git a/api/v2/images/[id].js b/api/v2/images/[id].js index 80b3db0..542b1ab 100644 --- a/api/v2/images/[id].js +++ b/api/v2/images/[id].js @@ -1,5 +1,5 @@ // @ts-check -import rawData from "../../../data/image_names.json"; +import rawData from "../../../data/image_names.json" with { type: "json" }; /** * @typedef {import("@vercel/node").VercelRequest} VercelRequest