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

카카오 로그인 redirect uri 변경 #150

Merged
merged 1 commit into from
Jan 21, 2022
Merged

카카오 로그인 redirect uri 변경 #150

merged 1 commit into from
Jan 21, 2022

Conversation

SeojinSeojin
Copy link
Member

⛓ Related Issues

📋 작업 내용

  • process.env.NODE_ENV 읽기
  • 도메인 삼항연산자 때리기

📌 PR Point

export const isProduction = process.env.NODE_ENV === 'production';
export const DOMAIN = isProduction ? 'http://localhost:3000/' : 'https://neogasogaeseo.com/';

이렇게 한 이후, 우리 도메인 쓰는 부분들은 다 ${DOMAIN} 넣어 놨습니당

Reference

https://ui.toast.com/weekly-pick/ko_20191212
https://github.com/pa-rang/kyrics-frontend/blob/main/lib/constants/env.ts

@SeojinSeojin SeojinSeojin added the feature 🎄 기능 개발 label Jan 21, 2022
@SeojinSeojin SeojinSeojin self-assigned this Jan 21, 2022
@SeojinSeojin
Copy link
Member Author

울 웹쁜이 고생많았어 ! 여기서 미리보기로 보면서 쉬어~ 다른 웹쁜이들한테도 자랑해줘~

@SeojinSeojin SeojinSeojin merged commit 6b6a59c into dev Jan 21, 2022
@SeojinSeojin SeojinSeojin deleted the feat/#132 branch January 21, 2022 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 🎄 기능 개발
Projects
None yet
Development

Successfully merging this pull request may close these issues.

production 모드와 develop 모드를 구별하여 url 제공하기
4 participants