Set API path as env var

This commit is contained in:
KGrzeg 2023-03-01 03:36:09 +01:00
parent 89e2f52063
commit 23dc908344
3 changed files with 15 additions and 1 deletions

View file

@ -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) {