Skip to content
Snippets Groups Projects
Commit 4fe405f5 authored by Paolo.Brasolin's avatar Paolo.Brasolin
Browse files

feat: #fe parameterize backend url

parent 9eb30e05
No related branches found
No related tags found
No related merge requests found
Pipeline #23353 failed
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
[*.{js,ts,json}]
indent_size = 2
indent_style = space
...@@ -117,6 +117,8 @@ test-be-node-job: ...@@ -117,6 +117,8 @@ test-be-node-job:
build-fe-node-job: build-fe-node-job:
extends: .fe-node-job extends: .fe-node-job
stage: build stage: build
variables:
NODE_ENV: staging
script: script:
- npm run build - npm run build
artifacts: artifacts:
...@@ -176,6 +178,7 @@ build-be-job: ...@@ -176,6 +178,7 @@ build-be-job:
eurac/$GAME_NAME:html5 eurac/$GAME_NAME:html5
--userversion ${CI_COMMIT_TAG:-$CI_COMMIT_SHORT_SHA} --userversion ${CI_COMMIT_TAG:-$CI_COMMIT_SHORT_SHA}
# TODO: we need separate build job for prd
prd-fe-deploy-job: prd-fe-deploy-job:
extends: .fe-deploy-job extends: .fe-deploy-job
environment: environment:
......
BACKEND_URL=
BACKEND_URL=http://localhost:8080/
BACKEND_URL=https://kommul.eurac.edu/oetzi/
BACKEND_URL=https://kommul-dev.eurac.edu/oetzi/
...@@ -86,8 +86,7 @@ function preload() { ...@@ -86,8 +86,7 @@ function preload() {
}); });
} }
// window.OetziWordsSiteUrlPrefix = "http://localhost:8080/oetzi_words/" //use this to develop window.OetziWordsSiteUrlPrefix = process.env.BACKEND_URL;
window.OetziWordsSiteUrlPrefix = "http://localhost:8080/"; // use this to deploy
let gameRunning = false; let gameRunning = false;
let player; let player;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment