Skip to content

Commit

Permalink
Merge pull request #89 from Imageomics/88-fix-api-config
Browse files Browse the repository at this point in the history
Fix React API URL
  • Loading branch information
johnbradley authored Feb 16, 2024
2 parents 28b847d + e2db141 commit 2fb1598
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion andromeda-ui/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
const { PHASE_DEVELOPMENT_SERVER } = require("next/constants");

module.exports = (phase, { defaultConfig }) => {
let apiURL = "api";
let apiURL = "/api";
if (phase === PHASE_DEVELOPMENT_SERVER) {
apiURL = "http://127.0.0.1:5000/api";
}
Expand Down

0 comments on commit 2fb1598

Please sign in to comment.