Vite does not preserve dynamic access patterns like const env = import.meta.env (code e.g. // 🔴 CRITICAL: direct import.meta.env usage (no intermediate object)
// This ensures Vite statically injects values into the production bundle
export const config: MedplumAppConfig = {
baseUrl:
import.meta.env.VITE_MEDPLUM_BASE_URL ??
import.meta.env.MEDPLUM_BASE_URL ??
'',)