Skip to content

Commit

Permalink
🐛 Fix redis env
Browse files Browse the repository at this point in the history
  • Loading branch information
naelob committed Apr 19, 2024
1 parent 21810d4 commit 2f30d26
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions apps/client-ts/src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ export async function middleware(request: NextRequest) {
return response;
}

/*const sessionJWT = request.cookies.get("stytch_session_jwt")?.value;
const sessionJWT = request.cookies.get("stytch_session_jwt")?.value;
console.log(sessionJWT)
if (!sessionJWT) {
return NextResponse.redirect(new URL("/b2c/login", request.url));
Expand All @@ -203,7 +203,7 @@ export async function middleware(request: NextRequest) {
return NextResponse.next();
} catch (e) {
return NextResponse.redirect(new URL("/b2c/login", request.url));
}*/
}

/*const sessionJWT = request.cookies.get("session")?.value;
Expand Down
3 changes: 2 additions & 1 deletion packages/api/src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ import { ThrottlerGuard, ThrottlerModule } from '@nestjs/throttler';
BullModule.forRoot({
redis: {
host: process.env.REDIS_HOST,
port: 6379,
port: Number(process.env.REDIS_PORT),
password: process.env.REDIS_PASS
},
}),
],
Expand Down
2 changes: 1 addition & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2f30d26

Please sign in to comment.