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?

SupabaseのURLまたはAnonキーが設定されていません

Posted at
.env
SUPABASE_URL=https.....
SUPABASE_ANON_KEY=fdgYj.....

このように書かれているファイルを次のように変更するとエラーが解消しました

.env
NEXT_PUBLIC_SUPABASE_URL=https.....
NEXT_PUBLIC_SUPABASE_ANON_KEY=fdgYj.....

理由としてはクライアントサイドで環境変数を使用する場合はNEXT_PUBLICを先頭に書く必要があるみたいです。(サーバーサイドのみで使用する場合は書かなくてもよい)

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?