diff --git a/apps/web/.env b/apps/web/.env index 68077d3fe..63728dde8 100644 --- a/apps/web/.env +++ b/apps/web/.env @@ -1,7 +1,7 @@ RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED=false -NEXT_PUBLIC_GAUZY_API_SERVER_URL=https://apistage.gauzy.co -GAUZY_API_SERVER_URL=https://apistage.gauzy.co/api +NEXT_PUBLIC_GAUZY_API_SERVER_URL=https://api.gauzy.co +GAUZY_API_SERVER_URL=https://api.gauzy.co/api INVITE_CALLBACK_URL=https://app.ever.team/passcode NEXT_PUBLIC_GA_MEASUREMENT_ID=SOME_MEASUREMENT_ID @@ -16,7 +16,7 @@ INVITE_CALLBACK_URL=https://app.ever.team/auth/passcode VERIFY_EMAIL_CALLBACK_URL=https://app.ever.team/verify-email # SMTP Mail Configuration -SMTP_FROM_ADDRESS= +SMTP_FROM_ADDRESS=noreply@ever.team SMTP_HOST= SMTP_PORT= SMTP_SECURE= @@ -32,19 +32,19 @@ APP_SIGNATURE="Ever Teams" APP_LOGO_URL="https://app.ever.team/assets/gauzy-team.png" # Cookies -NEXT_PUBLIC_COOKIE_DOMAINS= +NEXT_PUBLIC_COOKIE_DOMAINS=ever.team + +# Board +NEXT_PUBLIC_BOARD_APP_DOMAIN=https://board.ever.team +NEXT_PUBLIC_BOARD_BACKEND_POST_URL="https://jsonboard.ever.team/api/v2/post/" +NEXT_PUBLIC_BOARD_FIREBASE_CONFIG= # Meet -NEXT_PUBLIC_MEET_DOMAIN="meet.jit.si" +NEXT_PUBLIC_MEET_DOMAIN="meet.ever.team" # Private Variables (Meet) -MEET_JWT_APP_ID= +MEET_JWT_APP_ID=ever_teams MEET_JWT_APP_SECRET= -# Board -NEXT_PUBLIC_BOARD_APP_DOMAIN= -NEXT_PUBLIC_BOARD_BACKEND_POST_URL= -NEXT_PUBLIC_BOARD_FIREBASE_CONFIG= - # SENTRY SENTRY_ORG=ever-co SENTRY_PROJECT=ever-teams-web diff --git a/apps/web/.env.sample b/apps/web/.env.sample index 1a041e513..12cba1897 100644 --- a/apps/web/.env.sample +++ b/apps/web/.env.sample @@ -1,7 +1,7 @@ RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED=false -NEXT_PUBLIC_GAUZY_API_SERVER_URL=https://apistage.gauzy.co -GAUZY_API_SERVER_URL=https://apistage.gauzy.co/api +NEXT_PUBLIC_GAUZY_API_SERVER_URL=https://api.gauzy.co +GAUZY_API_SERVER_URL=https://api.gauzy.co/api INVITE_CALLBACK_URL=https://app.ever.team/passcode NEXT_PUBLIC_GA_MEASUREMENT_ID=SOME_MEASUREMENT_ID @@ -16,7 +16,7 @@ INVITE_CALLBACK_URL=https://app.ever.team/auth/passcode VERIFY_EMAIL_CALLBACK_URL=https://app.ever.team/verify-email # SMTP Mail Configuration -SMTP_FROM_ADDRESS= +SMTP_FROM_ADDRESS=noreply@ever.team SMTP_HOST= SMTP_PORT= SMTP_SECURE= @@ -28,6 +28,9 @@ APP_NAME='Ever Teams' APP_SIGNATURE='Ever Teams' APP_LOGO_URL='https://app.ever.team/assets/gauzy-team.png' +# Cookies +NEXT_PUBLIC_COOKIE_DOMAINS=ever.team + # SENTRY SENTRY_ORG= SENTRY_PROJECT= @@ -40,3 +43,9 @@ JITSU_BROWSER_WRITE_KEY= # Github Integration NEXT_PUBLIC_GITHUB_APP_NAME=ever-github + +# Meet +NEXT_PUBLIC_MEET_DOMAIN="meet.ever.team" +# Private Variables (Meet) +MEET_JWT_APP_ID=ever_teams +MEET_JWT_APP_SECRET= diff --git a/apps/web/app/constants.ts b/apps/web/app/constants.ts index 241a3d6d9..c254ee428 100644 --- a/apps/web/app/constants.ts +++ b/apps/web/app/constants.ts @@ -30,13 +30,15 @@ export const NO_TEAM_POPUP_SHOW_COOKIE_NAME = 'no-team-popup-show'; export const RECAPTCHA_SITE_KEY = process.env.NEXT_PUBLIC_CAPTCHA_SITE_KEY; export const RECAPTCHA_SECRET_KEY = process.env.CAPTCHA_SECRET_KEY; -export const GAUZY_API_SERVER_URL = process.env.GAUZY_API_SERVER_URL; +export const GAUZY_API_SERVER_URL = + process.env.GAUZY_API_SERVER_URL || 'https://api.gauzy.co/api'; export const INVITE_CALLBACK_URL = process.env.INVITE_CALLBACK_URL; export const INVITE_CALLBACK_PATH = '/auth/passcode'; export const VERIFY_EMAIL_CALLBACK_URL = process.env.VERIFY_EMAIL_CALLBACK_URL; export const VERIFY_EMAIL_CALLBACK_PATH = '/verify-email'; -export const SMTP_FROM_ADDRESS = process.env.SMTP_FROM_ADDRESS || ''; +export const SMTP_FROM_ADDRESS = + process.env.SMTP_FROM_ADDRESS || 'noreply@ever.team'; export const SMTP_HOST = process.env.SMTP_HOST || ''; export const SMTP_PORT = process.env.SMTP_PORT || ''; export const SMTP_SECURE = process.env.SMTP_SECURE || ''; @@ -63,18 +65,22 @@ export const smtpConfiguration: () => I_SMTPRequest = () => ({ }); // Cookies -export const COOKIE_DOMAINS = (process.env.NEXT_PUBLIC_COOKIE_DOMAINS || '') +export const COOKIE_DOMAINS = ( + process.env.NEXT_PUBLIC_COOKIE_DOMAINS || 'ever.team' +) .split(',') .map((d) => d.trim()); // MEET Constants -export const MEET_DOMAIN = process.env.NEXT_PUBLIC_MEET_DOMAIN || 'meet.jit.si'; -export const MEET_JWT_APP_ID = process.env.MEET_JWT_APP_ID; +export const MEET_DOMAIN = + process.env.NEXT_PUBLIC_MEET_DOMAIN || 'meet.ever.team'; +export const MEET_JWT_APP_ID = process.env.MEET_JWT_APP_ID || 'ever_teams'; export const MEET_JWT_APP_SECRET = process.env.MEET_JWT_APP_SECRET; export const MEET_JWT_TOKEN_COOKIE_NAME = 'meet-jwt-session'; // BOARD board -export const BOARD_APP_DOMAIN = process.env.NEXT_PUBLIC_BOARD_APP_DOMAIN; +export const BOARD_APP_DOMAIN = + process.env.NEXT_PUBLIC_BOARD_APP_DOMAIN || 'https://board.ever.team'; export const BOARD_BACKEND_POST_URL = process.env.NEXT_PUBLIC_BOARD_BACKEND_POST_URL; export const BOARD_FIREBASE_CONFIG = @@ -90,4 +96,5 @@ export const jitsuConfiguration: ExtendedJitsuOptions = { }; // Github Integration -export const GITHUB_APP_NAME = process.env.NEXT_PUBLIC_GITHUB_APP_NAME || 'ever-github'; +export const GITHUB_APP_NAME = + process.env.NEXT_PUBLIC_GITHUB_APP_NAME || 'ever-github';