Skip to content

Connect, collaborate, and grow with a community of TypeScript developers

change to env vars

Chris Bautista51393e799c95
diff --git a/apps/web/src/middleware.ts b/apps/web/src/middleware.ts
index e8a03f02..dd66f9ac 100644
--- a/apps/web/src/middleware.ts
+++ b/apps/web/src/middleware.ts
@@ -9,7 +9,7 @@ export function middleware(req: NextRequest) {
const authValue = basicAuth.split(' ')[1];
const [user, pwd] = atob(authValue ?? '').split(':');
- if (user === 'trash_dev' && pwd === 'trash') {
+ if (user === process.env.USERNAME && process.env.PASSWORD === pwd) {
return NextResponse.next();
}
}
diff --git a/turbo.json b/turbo.json
index 47b51ea7..6bfb89e9 100644
--- a/turbo.json
+++ b/turbo.json
@@ -16,7 +16,9 @@
"NEXTAUTH_SECRET",
"NEXTAUTH_URL",
"RESEND_API_KEY",
- "PORT"
+ "PORT",
+ "USERNAME",
+ "PASSWORD"
]
},
"topo": {