--- import { BASE_PATH_WINDOW_KEY } from '@/lib/base-path'; const normalizeBasePath = (value) => { if (!value || !value.trim()) { return '/'; } let normalized = value.trim(); if (!normalized.startsWith('/')) { normalized = `/${normalized}`; } normalized = normalized.replace(/\/+$/, ''); return normalized || '/'; }; const runtimeBasePath = normalizeBasePath(process.env.BASE_URL); ---