add parent pages
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
/** Prefix for Laravel API when the SPA is served from another origin (production). Empty in dev with Vite proxy. */
|
||||
export function apiOrigin(): string {
|
||||
const v = import.meta.env.VITE_API_ORIGIN
|
||||
return typeof v === 'string' ? v.replace(/\/$/, '') : ''
|
||||
const fallback = 'https://api.alrahmaisgl.org'
|
||||
return typeof v === 'string' && v.trim() ? v.replace(/\/$/, '') : fallback
|
||||
}
|
||||
|
||||
export function apiUrl(path: string): string {
|
||||
|
||||
Reference in New Issue
Block a user