debug env

This commit is contained in:
peintnermax
2024-08-12 11:31:18 +02:00
parent 8544291c80
commit 16ea8910d4
3 changed files with 4 additions and 5 deletions

View File

@@ -1 +1,2 @@
ZITADEL_API_URL=http://localhost:22222
ZITADEL_API_URL=http://localhost:22222
DEBUG=true

View File

@@ -2,7 +2,7 @@ import { redirect } from "next/navigation";
export default function Page() {
// automatically redirect to loginname
if (process.env.NODE_ENV === "production") {
if (!process.env.DEBUG) {
redirect("/loginname");
}
}

View File

@@ -1,9 +1,7 @@
{
"$schema": "https://turbo.build/schema.json",
"ui": "tui",
"globalDependencies": [
"**/.env.*local"
],
"globalDependencies": ["**/.env.*local"],
"globalEnv": [
"DEBUG",
"ZITADEL_API_URL",