path correction
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* API origin/path prefix.
|
||||
* - Dev (base "/"): "" → /api/... via Vite proxy
|
||||
* - Prod (base "/citpl_website/"): "/citpl_website" → /citpl_website/api/...
|
||||
* Override with VITE_API_BASE when the API is hosted elsewhere.
|
||||
*/
|
||||
export const API_BASE = (
|
||||
import.meta.env.VITE_API_BASE
|
||||
?? import.meta.env.VITE_API_URL
|
||||
?? import.meta.env.BASE_URL
|
||||
?? '/'
|
||||
).replace(/\/$/, '');
|
||||
Reference in New Issue
Block a user