Skip to content

Commit 386e2df

Browse files
authored
Update App.tsx
1 parent d1e1bfc commit 386e2df

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

example/src/App.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import { useIdentityContext, IdentityContextProvider } from "react-netlify-ident
44
import "react-netlify-identity-widget/styles.css"
55

66
function App() {
7-
const url = "https://react-netlify-identity-widget.netlify.com"
7+
const url = process.env.REACT_APP_NETLIFY_IDENTITY_URL // should look something like "https://foo.netlify.com"
8+
if (!url) throw new Error('process.env.REACT_APP_NETLIFY_IDENTITY_URL is blank, which means you probably forgot to set it in your Netlify environment variables')
89
return (
910
<IdentityContextProvider url={url}>
1011
<AuthStatusView />

0 commit comments

Comments
 (0)