File size: 240 Bytes
69f2236
 
 
 
 
054d73a
 
1
2
3
4
5
6
7
8
const readEnvString = (value: unknown): string | undefined =>
  typeof value === "string" && value.trim().length > 0
    ? value.trim()
    : undefined;

export const API_BASE_URL =
  readEnvString(import.meta.env.VITE_API_BASE_URL) ?? "";