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.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
fix urls in sopcial login
Sara Vieira2f82931070e6
diff --git a/app/services/auth.server.ts b/app/services/auth.server.tsindex f9f541a2aa..82ebc85ebd 100644--- a/app/services/auth.server.ts+++ b/app/services/auth.server.ts@@ -14,8 +14,8 @@ import { sentryException } from "~/shared/sentry";import { AUTH_PROVIDERS } from "~/shared/session";const url = `${- process.env.VERCEL_URL- ? `https://${process.env.VERCEL_URL}`+ process.env.DEPLOYMENT_ENVIRONMENT === "production"+ ? process.env.DEPLOYMENT_URL: `http://localhost:${process.env.PORT || 3000}`}${config.authPath}`;diff --git a/env-check.js b/env-check.jsindex c39ecf1862..6f4d96c545 100644--- a/env-check.js+++ b/env-check.js@@ -22,6 +22,14 @@ REQUIRED_ENVS.map((env) => {errors.push(`👉 The ${env} environment variable is required`);});+if (process.env.DEPLOYMENT_ENVIRONMENT === "production") {+ if (!process.env.DEPLOYMENT_URL) {+ errors.push(+ "👉 In production DEPLOYMENT_URL is required for website functionality. Please set it to your production URL"+ );+ }+}+if (errors.length) {// eslint-disable-next-line no-consoleconsole.error("❌ Invalid environment variables:");