PoleElementsList component
This commit is contained in:
9
client/src/config/strapi.ts
Normal file
9
client/src/config/strapi.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
// Global Strapi configuration
|
||||
export const STRAPI_CONFIG = {
|
||||
BASE_URL: (import.meta.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;
|
||||
}
|
||||
Reference in New Issue
Block a user