Skip to content

Commit

Permalink
fix: tiny for base URL
Browse files Browse the repository at this point in the history
  • Loading branch information
evereq committed Feb 8, 2024
1 parent 12e71fb commit 6b4726b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions apps/web/app/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,8 @@ export const RECAPTCHA_SITE_KEY = getNextPublicEnv(
);
export const RECAPTCHA_SECRET_KEY = process.env.CAPTCHA_SECRET_KEY;

// Gauzy Server URL
export const GAUZY_API_SERVER_URL = process.env.GAUZY_API_SERVER_URL
? process.env.GAUZY_API_SERVER_URL.replace('/api', '') + '/api'
: 'https://api.ever.team' + '/api';
const basePath = process.env.GAUZY_API_SERVER_URL ? process.env.GAUZY_API_SERVER_URL : 'https://api.ever.team';
export const GAUZY_API_SERVER_URL = basePath + '/api';

export const GAUZY_API_BASE_SERVER_URL = getNextPublicEnv(
'NEXT_PUBLIC_GAUZY_API_SERVER_URL',
Expand Down

0 comments on commit 6b4726b

Please sign in to comment.