fix: update comment

This commit is contained in:
Matilda Landström
2024-05-21 12:33:06 +02:00
parent d521f9fe27
commit 9a92e637b9

View File

@@ -24,7 +24,7 @@ export async function GET(request: NextRequest) {
request.nextUrl.searchParams.get("redirectTo") ||
"/"
// If above fails, always redirect to startpage
// Make relative URL to absolute URL
if (redirectTo.startsWith("/")) {
if (!env.PUBLIC_URL) {
throw internalServerError("No value for env.PUBLIC_URL")