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.

avoid "as"

Oleg Isonenb3d10eb61ac0
diff --git a/app/services/session.server.ts b/app/services/session.server.ts
index 423d3c303b..58eb79394c 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 as string], // replace this with an actual secret
+ secrets: [process.env.AUTH_SECRET ?? ""], // replace this with an actual secret
secure: process.env.NODE_ENV === "production", // enable this in prod only
},
});