diff --git a/app/auth/callback/route.ts b/app/auth/callback/route.ts index a974dfd..25e106b 100644 --- a/app/auth/callback/route.ts +++ b/app/auth/callback/route.ts @@ -13,5 +13,6 @@ export async function GET(request: NextRequest) { } // URL to redirect to after sign in process completes - return NextResponse.redirect(new URL('/analytics', request.url)); + const siteUrl = process.env.NEXT_PUBLIC_SITE_URL || 'https://main.upj.to'; + return NextResponse.redirect(new URL('/analytics', siteUrl)); } \ No newline at end of file