Use the env var url
This commit is contained in:
parent
80c57f0f10
commit
9e0deba47d
1 changed files with 1 additions and 1 deletions
|
|
@ -52,7 +52,7 @@ class Api {
|
|||
}
|
||||
}
|
||||
|
||||
const api: Api = new Api({ url: 'http://127.0.0.1:3000/api/v1' })
|
||||
const api: Api = new Api({ url: process.env.SIERO_API_URL || 'http://127.0.0.1:3000/api/v1' })
|
||||
api.createEntity( { name: 'users' })
|
||||
api.createEntity( { name: 'parties' })
|
||||
api.createEntity( { name: 'weapons' })
|
||||
|
|
|
|||
Loading…
Reference in a new issue