Skip to content

Commit b53e986

Browse files
Added missing initialization of ConvexReactClient in Convex integration doc for React
1 parent c0421f8 commit b53e986

File tree

1 file changed

+6
-0
lines changed
  • docs/guides/development/integrations/databases

1 file changed

+6
-0
lines changed

docs/guides/development/integrations/databases/convex.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,12 @@ With [Convex](https://www.convex.dev/), you can build a backend with a provided
164164
throw new Error('Add your Clerk Publishable Key to the .env file')
165165
}
166166

167+
if (!process.env.PUBLIC_CONVEX_URL) {
168+
throw new Error('Missing PUBLIC_CONVEX_URL in your .env file')
169+
}
170+
171+
const convex = new ConvexReactClient(process.env.PUBLIC_CONVEX_URL)
172+
167173
ReactDOM.createRoot(document.getElementById('root')!).render(
168174
<React.StrictMode>
169175
<ClerkProvider publishableKey={PUBLISHABLE_KEY} afterSignOutUrl="/">

0 commit comments

Comments
 (0)