Skip to content

Commit

Permalink
Update deploy for prod and staging
Browse files Browse the repository at this point in the history
  • Loading branch information
Rub21 committed Aug 16, 2023
1 parent ed81bdf commit a2063ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/config/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
export const gpuEncodeAPI = process.env.REACT_APP_ENV === 'production' ? "https://sas-gpu.ds.io" : "https://gpu-spot.segmentanythingservice.com";
export const gpuEncodeAPI =
process.env.REACT_APP_ENV === "production"
? "https://sas-gpu.ds.io"
: "https://gpu-spot.segmentanythingservice.com";
export const cpuDecodeAPI = "https://sas.ds.io";
export const samAPI =
"http://segme-gpuel-ekfao79wi98g-617785108.us-east-1.elb.amazonaws.com";
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import App from "./App";
import MainContextProvider from "./contexts/MainContext";

const root = ReactDOM.createRoot(document.getElementById("root"));
const basename = process.env.PUBLIC_URL
const basename = process.env.PUBLIC_URL;
root.render(
<MainContextProvider>
<BrowserRouter basename={basename}>
Expand Down

0 comments on commit a2063ad

Please sign in to comment.