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

Docs: Add env settings on both Local & Development #82

Open
jihostudy opened this issue Jul 25, 2024 · 3 comments
Open

Docs: Add env settings on both Local & Development #82

jihostudy opened this issue Jul 25, 2024 · 3 comments
Assignees
Labels
chore 사소한 작업 docs 문서 작업

Comments

@jihostudy
Copy link
Member

Describe the feature

For Checking API Route I added an .env.local file.

Please Add this .env.local file on all of your projects

.env.local

NEXT_PUBLIC_LOCAL_URL = http://localhost:3000
NEXT_PUBLIC_DEPLOY_URL = https://comit-website.vercel.app

@B0XERCAT Please add enviroment settings as above on vercel deploy app

Later, we will fix NEXT_PUBLIC_DEPLOY_URL to backend domain name.
you can find it on settings > Environment Variables

@jihostudy jihostudy added docs 문서 작업 chore 사소한 작업 labels Jul 25, 2024
@B0XERCAT
Copy link
Member

NEXT_PUBLIC_LOCAL_URL = http://localhost:3000
NEXT_PUBLIC_DEPLOY_URL = https://comit-website.vercel.app

민감한 정보도 아닌데 굳이 env로 만드는 이유가 있나요?

@B0XERCAT
Copy link
Member

image
추가 완료했습니다!

@kdy1
Copy link
Member

kdy1 commented Jul 26, 2024

NEXT_PUBLIC_APP_URL처럼 1개의 이름을 사용하고 버셀 UI에서 Environments를 설정해주는 게 더 나은 방법입니다.
그렇게하면 로컬에서 개발하기 위해 vc env pull을 하면 Development의 환경 변수를 갖고 오고, 프로덕션에 배포할때는 Production 의 환경변수를 사용합니다

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore 사소한 작업 docs 문서 작업
Projects
None yet
Development

No branches or pull requests

5 participants