我正在在线使用supabase postgresql,其中重要的是创建一个.env文件,其中保存了我的在线DMBS的URL和匿名密钥,还创建了一个“supabase客户端”文件来访问DBMS和表,并在其中导入“supabase客户端”需要文件。我已经完成了他们文档中的所有相同操作,但仍然面临错误“错误:需要supabaseUrl”,但我已经输入了网址。
..................代码............................... ……
import React, { useState } from 'react'
import './App'
import Login from './Login';
import { BrowserRouter as Router, Route, Link, NavLink, Switch } from 'react-router-dom';
import {supabase} from './supabaseClient';
return(
<>
<div className="container" >
<div className="heading">
<h1>SignUp Form</h1>
</div>
<form>
<Router>
<div className="mb-3">
<label className="flabel">Name</label>
<input type="text" className="fcontrol" placeholder="Enter Your Name"/>
</div>
<div className="mb-3">
<label className="flabel">Phone</label>
<input type="tel" className="fcontrol" placeholder="Enter Your Phone Number"/>
</div>
<div className="mb-3">
<label className="flabel">Email</label>
<input type="email" className="fcontrol" placeholder="Enter Your Email"/>
</div>
<div …Run Code Online (Sandbox Code Playgroud)