Skip to content

Commit

Permalink
cr
Browse files Browse the repository at this point in the history
  • Loading branch information
bracesproul committed Mar 21, 2024
1 parent 7ded08a commit de40fc9
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions frontend/app/utils/api_url.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
export const getBaseApiUrl = () => {
if (process.env.NODE_ENV === "development") {
return "http://localhost:8000";
}
if (!process.env.BASE_API_URL) {
throw new Error("BASE_API_URL must be set if not in development.");
}
return process.env.BASE_API_URL;
return "http://localhost:8000";
};

0 comments on commit de40fc9

Please sign in to comment.