Skip to content

Commit

Permalink
chore: public api url 불필요한 스킴 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
dladncks1217 committed Sep 5, 2024
1 parent 7c9be25 commit f14c921
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/constants/api/api.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const PROD = process.env.NODE_ENV === 'production';

export const BASE_URL = PROD ? `http://${process.env.NEXT_PUBLIC_API_URL}` : 'https://localhost:3000';
export const BASE_URL = PROD ? `${process.env.NEXT_PUBLIC_API_URL}` : 'https://localhost:3000';

export const GOOGLE_AUTH_API_URL = `https://accounts.google.com/o/oauth2/v2/auth?client_id=${process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID}&response_type=code&redirect_uri=${BASE_URL}/${process.env.NEXT_PUBLIC_GOOGLE_REDIRECT_URI}&scope=openid%20email%20profile%20https://www.googleapis.com/auth/gmail.modify&access_type=offline`;

0 comments on commit f14c921

Please sign in to comment.