Skip to content

Commit

Permalink
fix(config): 本番で環境変数を読み込めるように修正
Browse files Browse the repository at this point in the history
  • Loading branch information
wiyco committed Dec 18, 2024
1 parent c186f6c commit 4376447
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/constants/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
export const HOST_ORIGIN_URL =
process.env.NODE_ENV !== "production"
? "http://localhost:3000"
: new URL(process.env.HOST_ORIGIN_URL || "").origin;
: new URL(process.env.NEXT_PUBLIC_HOST_ORIGIN_URL || "").origin;

/**
* ホストサーバのドメイン
Expand Down

0 comments on commit 4376447

Please # to comment.