Skip to content

Commit 5323462

Browse files
authored
Merge branch 'change-base-url' of 'https://github.com/evamillan/grimoirelab-core'
Merges #40 Closes #40
2 parents 4f12f17 + ef8b94e commit 5323462

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ui/src/services/api/client.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import axios from 'axios'
22

3-
const base = import.meta.env.VITE_API_ENDPOINT || 'http://localhost:8000'
3+
const defaultBase = import.meta.env.MODE === 'development' ? 'http://localhost:8000' : "/"
4+
const base = import.meta.env.VITE_API_ENDPOINT || defaultBase
45

56
export const client = axios.create({
67
baseURL: base,

0 commit comments

Comments
 (0)