9 lines
311 B
TypeScript
9 lines
311 B
TypeScript
// Global Strapi configuration
|
|
export const STRAPI_CONFIG = {
|
|
BASE_URL: (import.meta.env.STRAPI_URL as string) || (process.env.STRAPI_URL as string) || "http://localhost:1337",
|
|
} as const;
|
|
|
|
// Helper function to get the base URL
|
|
export function getStrapiBaseUrl(): string {
|
|
return STRAPI_CONFIG.BASE_URL;
|
|
}
|