fix: `HOSTED_CAL_FEATURES` env doesn't get passed to the frontend (#6392)
* fix: rename HOSTED_CAL_FEATURES into NEXT_PUBLIC_HOSTED_CAL_FEATURES * chore: add the new env to example * fix: docs link Co-authored-by: Peer Richelsen <peeroke@gmail.com>
This commit is contained in:
parent
f96e909dce
commit
965cff38c2
|
@ -31,11 +31,14 @@ NEXT_PUBLIC_CONSOLE_URL='http://localhost:3004'
|
||||||
NEXT_PUBLIC_EMBED_LIB_URL='http://localhost:3000/embed/embed.js'
|
NEXT_PUBLIC_EMBED_LIB_URL='http://localhost:3000/embed/embed.js'
|
||||||
|
|
||||||
# To enable SAML login, set both these variables
|
# 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="postgresql://postgres:@localhost:5450/cal-saml"
|
||||||
SAML_DATABASE_URL=
|
SAML_DATABASE_URL=
|
||||||
# SAML_ADMINS='pro@example.com'
|
# SAML_ADMINS='pro@example.com'
|
||||||
SAML_ADMINS=
|
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.
|
# 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
|
# @see https://devcenter.heroku.com/articles/connecting-heroku-postgres#connecting-in-node-js
|
||||||
# PGSSLMODE='no-verify'
|
# PGSSLMODE='no-verify'
|
||||||
|
|
|
@ -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 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 IS_PRODUCTION = process.env.NODE_ENV === "production";
|
||||||
export const TRIAL_LIMIT_DAYS = 14;
|
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` */
|
/** @deprecated use `WEBAPP_URL` */
|
||||||
export const NEXT_PUBLIC_BASE_URL = process.env.NEXT_PUBLIC_WEBAPP_URL || `https://${process.env.VERCEL_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";
|
export const LOGO = "/calcom-logo-white-word.svg";
|
||||||
|
|
|
@ -211,7 +211,7 @@
|
||||||
"$ZOOM_CLIENT_SECRET",
|
"$ZOOM_CLIENT_SECRET",
|
||||||
"$HEROKU_APP_NAME",
|
"$HEROKU_APP_NAME",
|
||||||
"$RENDER_EXTERNAL_URL",
|
"$RENDER_EXTERNAL_URL",
|
||||||
"$HOSTED_CAL_FEATURES",
|
"$NEXT_PUBLIC_HOSTED_CAL_FEATURES",
|
||||||
"$HUBSPOT_CLIENT_ID",
|
"$HUBSPOT_CLIENT_ID",
|
||||||
"$HUBSPOT_CLIENT_SECRET",
|
"$HUBSPOT_CLIENT_SECRET",
|
||||||
"$INTEGRATION_TEST_MODE",
|
"$INTEGRATION_TEST_MODE",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user