Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated Constants #1563

Merged
merged 1 commit into from
Oct 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions apps/web/.env
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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=[email protected]
SMTP_HOST=
SMTP_PORT=
SMTP_SECURE=
Expand All @@ -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
Expand Down
15 changes: 12 additions & 3 deletions apps/web/.env.sample
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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=[email protected]
SMTP_HOST=
SMTP_PORT=
SMTP_SECURE=
Expand All @@ -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=
Expand All @@ -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=
21 changes: 14 additions & 7 deletions apps/web/app/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 || '[email protected]';
export const SMTP_HOST = process.env.SMTP_HOST || '';
export const SMTP_PORT = process.env.SMTP_PORT || '';
export const SMTP_SECURE = process.env.SMTP_SECURE || '';
Expand All @@ -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 =
Expand All @@ -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';