Skip to content

Commit

Permalink
examples: do not throw if env var is missing as this will cause a bui…
Browse files Browse the repository at this point in the history
…ld failure

while this would be wanted in a real app, we don't have that .env var available in this example
  • Loading branch information
schiller-manuel committed Sep 14, 2024
1 parent 8fde2ef commit fc987c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/react/start-convex-trellaux/app/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function createRouter() {

const CONVEX_URL = (import.meta as any).env.VITE_CONVEX_URL!
if (!CONVEX_URL) {
throw new Error('missing envar')
console.error('missing envar CONVEX_URL')
}
const convexQueryClient = new ConvexQueryClient(CONVEX_URL)

Expand Down

0 comments on commit fc987c4

Please sign in to comment.