diff --git a/.env.example b/.env.example index 7f5d7ecc70..0db0a49ec3 100644 --- a/.env.example +++ b/.env.example @@ -31,11 +31,14 @@ NEXT_PUBLIC_CONSOLE_URL='http://localhost:3004' NEXT_PUBLIC_EMBED_LIB_URL='http://localhost:3000/embed/embed.js' # To enable SAML login, set both these variables -# @see https://github.com/calcom/cal.com/tree/main/packages/ee#setting-up-saml-login +# @see https://github.com/calcom/cal.com/tree/main/packages/features/ee#setting-up-saml-login # SAML_DATABASE_URL="postgresql://postgres:@localhost:5450/cal-saml" SAML_DATABASE_URL= # SAML_ADMINS='pro@example.com' SAML_ADMINS= +# NEXT_PUBLIC_HOSTED_CAL_FEATURES=1 +NEXT_PUBLIC_HOSTED_CAL_FEATURES= + # If you use Heroku to deploy Postgres (or use self-signed certs for Postgres) then uncomment the follow line. # @see https://devcenter.heroku.com/articles/connecting-heroku-postgres#connecting-in-node-js # PGSSLMODE='no-verify' diff --git a/packages/lib/constants.ts b/packages/lib/constants.ts index a5421734e8..3bde35f15d 100644 --- a/packages/lib/constants.ts +++ b/packages/lib/constants.ts @@ -32,7 +32,9 @@ export const IS_SELF_HOSTED = !( export const EMBED_LIB_URL = process.env.NEXT_PUBLIC_EMBED_LIB_URL || `${WEBAPP_URL}/embed/embed.js`; export const IS_PRODUCTION = process.env.NODE_ENV === "production"; export const TRIAL_LIMIT_DAYS = 14; -export const HOSTED_CAL_FEATURES = process.env.HOSTED_CAL_FEATURES || !IS_SELF_HOSTED; + +export const HOSTED_CAL_FEATURES = process.env.NEXT_PUBLIC_HOSTED_CAL_FEATURES || !IS_SELF_HOSTED; + /** @deprecated use `WEBAPP_URL` */ export const NEXT_PUBLIC_BASE_URL = process.env.NEXT_PUBLIC_WEBAPP_URL || `https://${process.env.VERCEL_URL}`; export const LOGO = "/calcom-logo-white-word.svg"; diff --git a/turbo.json b/turbo.json index 88aba9fe41..0ee36fce54 100644 --- a/turbo.json +++ b/turbo.json @@ -211,7 +211,7 @@ "$ZOOM_CLIENT_SECRET", "$HEROKU_APP_NAME", "$RENDER_EXTERNAL_URL", - "$HOSTED_CAL_FEATURES", + "$NEXT_PUBLIC_HOSTED_CAL_FEATURES", "$HUBSPOT_CLIENT_ID", "$HUBSPOT_CLIENT_SECRET", "$INTEGRATION_TEST_MODE",