add parent pages

This commit is contained in:
root
2026-04-23 02:24:05 -04:00
parent 9191fd32f0
commit 94700d4f0f
30 changed files with 8179 additions and 634 deletions
+2 -1
View File
@@ -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 {