Skip to content

Commit

Permalink
backend_host undefined check
Browse files Browse the repository at this point in the history
  • Loading branch information
moonlags committed May 22, 2024
1 parent 7d7560e commit fb4c50a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import App from "./App.tsx";
import "./index.css";
import { Toaster } from "sonner";

// if (process.env.REACT_APP_BACKEND_HOST == null) {
// throw new Error("Please set REACT_APP_BACKEND_HOST variable");
// }
if (process.env.REACT_APP_BACKEND_HOST === undefined) {
throw new Error("Please set REACT_APP_BACKEND_HOST variable");
}

ReactDOM.createRoot(document.getElementById("root")!).render(
<React.StrictMode>
Expand Down

0 comments on commit fb4c50a

Please sign in to comment.