Skip to content

Open source personal finance application

refactor: remove hardcoded APP_URL fallback in convex auth

Ilya Komichev555fbc0f292f
diff --git a/convex/auth.ts b/convex/auth.ts
index 44d79a14..53189f34 100644
--- a/convex/auth.ts
+++ b/convex/auth.ts
@@ -10,7 +10,7 @@ import { components } from './_generated/api'
import authConfig from './auth.config'
const siteUrl = process.env.CONVEX_SITE_URL!
-const appUrl = process.env.APP_URL || 'http://localhost:3050'
+const appUrl = process.env.APP_URL!
export const authComponent = createClient<DataModel>(components.betterAuth)