0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

.envファイルは適切な位置に置こう

Last updated at Posted at 2024-08-18

はじめに

Supabaseでユーザーの登録機能を実装していた際に、以下のエラーが出たので共有します。

Error: supabaseUrl is required.

問題

subabaseのurlとAPI Keyが正しく設定されていないことで発生するエラーですが、.env ファイルの設定を見ても正しく設定されていました。

REACT_APP_SUPABASE_URL="YOUR_URL"
REACT_APP_SUPABASE_API_KEY="YOUR_API_KEY"

解決方法

.env ファイルを src ディレクトリ内に作成していたので、ルートディレクトリに .env ファイルを移動することで解決できました。

おわりに

最近はDeepLの拡張機能を使って英語のドキュメントを読んだりしていて、今回はstackoverflowの記事を参考にして、解決できました。

参考

0
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?