Skip to content

Commit

Permalink
fix: 환경변수 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
eugene028 committed Aug 28, 2024
1 parent d41f620 commit 11c2399
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/admin/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ const middleware = async (req: NextRequest) => {
if (studyRole === "STUDENT" && manageRole === "NONE") {
const url =
process.env.NEXT_PUBLIC_VERCEL_ENV === "production"
? process.env.CLIENT_PROD_URL
: process.env.CLIENT_DEV_URL;
? process.env.NEXT_PUBLIC_CLIENT_PROD_URL
: process.env.NEXT_PUBLIC_CLIENT_DEV_URL;

return NextResponse.redirect(new URL("/auth", url));
}
Expand Down

0 comments on commit 11c2399

Please sign in to comment.