set default for NEXT_PUBLIC_SAML_ORG_SLUG

This commit is contained in:
Maidul Islam
2024-04-08 09:25:37 -07:00
parent 54f1a4416b
commit 3b4bb591a3
2 changed files with 2 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
ARG POSTHOG_HOST=https://app.posthog.com
ARG POSTHOG_API_KEY=posthog-api-key
ARG INTERCOM_ID=intercom-id
ARG SAML_ORG_SLUG=smal-org-slug
ARG SAML_ORG_SLUG=saml-org-slug-default
FROM node:20-alpine AS base

View File

@@ -33,7 +33,7 @@ export const InitialStep = ({ setStep, email, setEmail, password, setPassword }:
const queryParams = new URLSearchParams(window.location.search);
useEffect(() => {
if (process.env.NEXT_PUBLIC_SAML_ORG_SLUG) {
if (process.env.NEXT_PUBLIC_SAML_ORG_SLUG && process.env.NEXT_PUBLIC_SAML_ORG_SLUG !== "saml-org-slug-default") {
const callbackPort = queryParams.get("callback_port");
window.open(
`/api/v1/sso/redirect/saml2/organizations/${process.env.NEXT_PUBLIC_SAML_ORG_SLUG}${