Skip to content

Commit

Permalink
fix: vercel_env i/o node_env
Browse files Browse the repository at this point in the history
  • Loading branch information
VariableVic committed Aug 6, 2024
1 parent 50c7fb1 commit c516499
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/lib/data/sessions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function createSession(token: string) {

cookies().set("_medusa_jwt", token, {
httpOnly: true,
secure: process.env.NODE_ENV === "production",
secure: process.env.VERCEL_ENV === "production",
expires: expiresAt,
sameSite: "strict",
path: "/",
Expand Down

0 comments on commit c516499

Please sign in to comment.