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

API使用方法 #1

Open
yu-chenggg opened this issue Mar 5, 2023 · 1 comment
Open

API使用方法 #1

yu-chenggg opened this issue Mar 5, 2023 · 1 comment

Comments

@yu-chenggg
Copy link
Collaborator

Page裡面有用到call api的部分,全部做成function整理到一個地方一起處理,不能寫死ip在各個page裡面,你如果ip 換了就會有一大堆地方要改

另外像這種ip 或是一些固定的東西,寫成一個.env file 來管理

https://nextjs.org/docs/basic-features/environment-variables

@wellyhsu
Copy link
Owner

wellyhsu commented Mar 8, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants