From 00a2bb9b82b1d899039b323c129a38dfe59f7738 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=89=E9=87=8E=E6=95=AC=E5=A4=AA=E9=83=8E?= Date: Sun, 15 Sep 2024 10:06:23 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=92=B0=E5=A2=83=E5=A4=89=E6=95=B0?= =?UTF-8?q?=E3=81=AE=E8=AA=AD=E3=81=BF=E6=81=8B=E3=82=92import.meta?= =?UTF-8?q?=E3=81=AB=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/library/postFetcher.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/library/postFetcher.ts b/src/library/postFetcher.ts index 95ace52..8852c46 100644 --- a/src/library/postFetcher.ts +++ b/src/library/postFetcher.ts @@ -1,8 +1,8 @@ import { createClient } from "microcms-js-sdk"; import type { MicroCMSQueries } from "microcms-js-sdk"; const client = createClient({ - serviceDomain: process.env.MICROCMS_SERVICE_DOMAIN as string, - apiKey: process.env.MICROCMS_API_KEY as string, + serviceDomain: import.meta.env.MICROCMS_SERVICE_DOMAIN as string, + apiKey: import.meta.env.MICROCMS_API_KEY as string, }); interface Category {