Make api url configurable in index.html
This commit is contained in:
@ -38,8 +38,8 @@ steps:
|
||||
commands:
|
||||
- yarn --frozen-lockfile
|
||||
- yarn run lint
|
||||
- "echo '{\"VIKUNJA_API_BASE_URL\": \"/api/v1/\"}' > /drone/src/public/config.json" # Override config
|
||||
- yarn run build
|
||||
- sed -i 's/http\:\/\/localhost\:8080\/api\/v1/\/api\/v1/g' dist/index.html # Override the default api url used for developing
|
||||
|
||||
- name: static
|
||||
image: kolaente/zip
|
||||
@ -112,8 +112,8 @@ steps:
|
||||
commands:
|
||||
- yarn --frozen-lockfile
|
||||
- yarn run lint
|
||||
- "echo '{\"VIKUNJA_API_BASE_URL\": \"/api/v1/\"}' > /drone/src/public/config.json" # Override config
|
||||
- yarn run build
|
||||
- sed -i 's/http\:\/\/localhost\:8080\/api\/v1/\/api\/v1/g' dist/index.html # Override the default api url used for developing
|
||||
|
||||
- name: static
|
||||
image: kolaente/zip
|
||||
|
Reference in New Issue
Block a user