From c51649915266a75494174fe2281fd4dae7a603e9 Mon Sep 17 00:00:00 2001 From: Victor Gerbrands Date: Tue, 6 Aug 2024 14:12:54 +0200 Subject: [PATCH] fix: vercel_env i/o node_env --- frontend/src/lib/data/sessions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/lib/data/sessions.ts b/frontend/src/lib/data/sessions.ts index 35e7b52..7247a8f 100644 --- a/frontend/src/lib/data/sessions.ts +++ b/frontend/src/lib/data/sessions.ts @@ -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: "/",