Prosigoj
Prosigoj7d ago

The "react better auth example" gives me

The "react better auth example" gives me after running dev command this error
✖ Error fetching POST https://quick-spider-104.convex.cloud/api/deploy2/start_push 400 Bad Request: InvalidModules: Hit an error while pushing:
Loading the pushed modules encountered the following
error:
Failed to analyze http.js: Uncaught Error: Missing environment variable `SITE_URL`
at requireEnv (../../node_modules/.pnpm/@convex-dev+better-auth@0.7.14_better-auth@1.3.4_react-dom@18.3.1_react@18.3.1__react@1_75d7dfdbec0cf53207776110cf9982b0/node_modules/@convex-dev/better-auth/src/utils/index.ts:7:9)
at <anonymous> (../src/lib/auth.ts:19:2)
✖ Error fetching POST https://quick-spider-104.convex.cloud/api/deploy2/start_push 400 Bad Request: InvalidModules: Hit an error while pushing:
Loading the pushed modules encountered the following
error:
Failed to analyze http.js: Uncaught Error: Missing environment variable `SITE_URL`
at requireEnv (../../node_modules/.pnpm/@convex-dev+better-auth@0.7.14_better-auth@1.3.4_react-dom@18.3.1_react@18.3.1__react@1_75d7dfdbec0cf53207776110cf9982b0/node_modules/@convex-dev/better-auth/src/utils/index.ts:7:9)
at <anonymous> (../src/lib/auth.ts:19:2)
no matter what I try it always want's a SITE_URL from me.
2 Replies
Sara
Sara7d ago
let me know if it works afterwards

Did you find this page helpful?