mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 10:36:44 +00:00
proxy anyways for the moment
This commit is contained in:
@@ -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://", "");
|
||||
|
||||
Reference in New Issue
Block a user