Skip to content

Commit

Permalink
Change port in prod (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
jordus100 authored Jun 12, 2024
1 parent da80f30 commit e29b586
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/services/Api.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import axios from "axios";
import c from "./client.config.json";
import store from '../User/store'

const baseURL = c["protocol"] + "://" + c["host"] + ":" + c["port"] + c["path"] + c["version"];
const port = process.env.NODE_ENV === "production" ? 80 : c["port"];
const baseURL = c["protocol"] + "://" + c["host"] + ":" + port + c["path"] + c["version"];

export const Api = axios.create({
baseURL: baseURL,
Expand Down

0 comments on commit e29b586

Please sign in to comment.