Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ export const API_URL = "https://lm-interactive-presentation-builder-api-dev-bzgv
export const LOCAL_API_URL = "http://localhost:8000"


const getApiUrl = () => {
if(import.meta.env.VITE_ENV === "production") {
return API_URL
} else {
return LOCAL_API_URL
}
}
// const getApiUrl = () => {
// if(import.meta.env.VITE_ENV === "production") {
// return API_URL
// } else {
// return LOCAL_API_URL
// }
// }

export const BASE_URL = getApiUrl()
export const BASE_URL = API_URL