Set API path as env var
This commit is contained in:
parent
89e2f52063
commit
23dc908344
3 changed files with 15 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
|||
const baseApiPath = "http://localhost:3000"
|
||||
const baseApiPath = process.env.API_PATH ?? "http://localhost:3000"
|
||||
|
||||
export default {
|
||||
async post(path: string, data?: any) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue