Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

no auth secret is better than an empty string

Oleg Isonen6e200b5907cb
diff --git a/app/services/session.server.ts b/app/services/session.server.ts
index 58eb79394c..3d9e473d35 100644
--- a/app/services/session.server.ts
+++ b/app/services/session.server.ts
@@ -7,7 +7,7 @@ export const sessionStorage = createCookieSessionStorage({
sameSite: "lax", // this helps with CSRF
path: "/", // remember to add this so the cookie will work in all routes
httpOnly: true, // for security reasons, make this cookie http only
- secrets: [process.env.AUTH_SECRET ?? ""], // replace this with an actual secret
+ secrets: process.env.AUTH_SECRET ? [process.env.AUTH_SECRET] : undefined, // replace this with an actual secret
secure: process.env.NODE_ENV === "production", // enable this in prod only
},
});