Skip to content

Commit

Permalink
add note for hardcoded convex url
Browse files Browse the repository at this point in the history
  • Loading branch information
erquhart committed Nov 26, 2024
1 parent 78d292d commit 32a6716
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import { QueryClient } from '@tanstack/react-query'
export function createRouter() {
const CONVEX_URL =
(import.meta as any).env.VITE_CONVEX_URL ||
// Hardcoded production URL as fallback for local development
// Currently set to an instance owned by Convex Devx
// TODO: Replace with URL to an instance owned by the TanStack team
'https://intent-pigeon-358.convex.cloud'
if (!CONVEX_URL) {
console.error('missing env var VITE_CONVEX_URL')
}
const convexQueryClient = new ConvexQueryClient(CONVEX_URL)

const queryClient: QueryClient = new QueryClient({
Expand Down

0 comments on commit 32a6716

Please sign in to comment.