Skip to content

Commit

Permalink
fix(microcmsClient): 環境変数が未定義の場合のデフォルト値を設定
Browse files Browse the repository at this point in the history
  • Loading branch information
riya-amemiya committed Jul 18, 2024
1 parent e1773ca commit 89dd37d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/microcmsClient.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createClient } from "microcms-js-sdk";

export const microcmsClient = createClient({
serviceDomain: process.env.MICROCMS_SERVICEDOMAIN as string,
apiKey: process.env.MICROCMS_API_KEY as string,
serviceDomain: process.env.MICROCMS_SERVICEDOMAIN || "",
apiKey: process.env.MICROCMS_API_KEY || "",
});

0 comments on commit 89dd37d

Please sign in to comment.