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.

use new flag

Sara Vieira37593008282a
diff --git a/app/auth/login.tsx b/app/auth/login.tsx
index 1d64173864..ef433b2694 100644
--- a/app/auth/login.tsx
+++ b/app/auth/login.tsx
@@ -55,7 +55,7 @@ export const Login = () => {
</Flex>
</Button>
</Form>
- {process.env.NODE_ENV === "development" && (
+ {process.env.DEV_LOGIN && (
<>
{isDevLogin ? (
<Form action="/auth/dev" method="post">
diff --git a/app/services/auth.server.ts b/app/services/auth.server.ts
index a1a9c94a69..1809d92280 100644
--- a/app/services/auth.server.ts
+++ b/app/services/auth.server.ts
@@ -51,7 +51,7 @@ if (process.env.GH_CLIENT_ID && process.env.GH_CLIENT_SECRET) {
authenticator.use(google, "google");
}
-if (process.env.NODE_ENV === "development") {
+if (process.env.DEV_LOGIN) {
authenticator.use(
new FormStrategy(async ({ form }) => {
const secret = form.get("secret");