0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Cloudflare Pagesでプレビュー機能を使っている場合に環境変数を設定するときの注意点

Last updated at Posted at 2025-02-05

image.png

image.png

本番環境とプレビュー環境で環境変数をそれぞれ設定する必要があるので注意。
設定画面で上記画像の様に環境を変更できるので、各環境で環境変数を設定すればいい。

私はこれに気づかず、本番環境だけで環境変数を設定しており、プレビュー環境で環境変数を参照できずデプロイが失敗し続けて困ったので、備忘として投稿。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?