Rename ssr to website, website to spa, add spa nginx config

This commit is contained in:
Your Name committed 2026-06-03 09:38:15 +07:00
1 parent fc6bf0218e
commit 8514342c2f
103 files changed
+801 -768

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
/**
* Central API base URL resolver.
*
* Priority:
* 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
*
* Dev: NEXT_PUBLIC_API_URL=http://localhost:3000/api
* Production: NEXT_PUBLIC_API_URL=https://api.irelaxaroma.shop/api
*/
export const API_BASE =
process.env.NEXT_PUBLIC_API_URL ||
process.env.INTERNAL_API_URL ||
'http://localhost:3000/api'