proxy anyways for the moment

This commit is contained in:
Max Peintner
2025-01-14 13:52:15 +01:00
parent 098fb7c4e3
commit 53df6a8c83

View File

@@ -10,14 +10,14 @@ export const config = {
};
export async function middleware(request: NextRequest) {
// escape proxy if the environment is
if (
!process.env.ZITADEL_API_URL ||
!process.env.ZITADEL_USER_ID ||
!process.env.ZITADEL_USER_TOKEN
) {
return NextResponse.next();
}
// escape proxy if the environment is setup for multitenancy
// if (
// !process.env.ZITADEL_API_URL ||
// !process.env.ZITADEL_USER_ID ||
// !process.env.ZITADEL_USER_TOKEN
// ) {
// return NextResponse.next();
// }
const INSTANCE_URL = process.env.ZITADEL_API_URL;
const instanceHost = `${INSTANCE_URL}`.replace("https://", "");