x
This commit is contained in:
1 parent
5b81cc810a
commit
158fa1ac22
7 files changed
+1712
-319
No files matched your search
@@ -5,12 +5,12 @@
|
||||
* 1. NEXT_PUBLIC_API_URL — ตั้งค่าใน .env / .env.production (Client + Server)
|
||||
* 2. INTERNAL_API_URL — ตั้งค่าใน .env สำหรับ Server-side เท่านั้น
|
||||
* ใช้เมื่อ Server fetch ภายใน network เดียวกัน
|
||||
* 3. Fallback dev — http://localhost:3000/api
|
||||
* 3. Fallback dev — http://localhost:3051/api
|
||||
*
|
||||
* Dev: NEXT_PUBLIC_API_URL=http://localhost:3000/api
|
||||
* Dev: NEXT_PUBLIC_API_URL=http://localhost:3051/api
|
||||
* Production: NEXT_PUBLIC_API_URL=https://api.homaroma.shop/api
|
||||
*/
|
||||
export const API_BASE =
|
||||
process.env.NEXT_PUBLIC_API_URL ||
|
||||
process.env.INTERNAL_API_URL ||
|
||||
'http://localhost:3000/api'
|
||||
'http://localhost:3051/api'
|
||||
Reference in new issue
Block a user