* chore: inject enviroment at the deployment phase (#2174) * Dockerfile CMD env.sh * env.sh generates env-config.js file * index.html imports env-config.js * front/src/config/index.ts imports REACT_APP_SERVER_BASE_URL * Upgrade Dockerfiles * Add compute pg_database_url for render * fix tests --------- Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
@ -66,7 +66,8 @@
|
||||
},
|
||||
"scripts": {
|
||||
"start": "PORT=3001 craco start --max-warnings=0",
|
||||
"build": "craco build",
|
||||
"build:inject-runtime-env": "./scripts/inject-runtime-env.sh",
|
||||
"build": "craco build && yarn build:inject-runtime-env",
|
||||
"test": "craco test",
|
||||
"coverage": "craco test --coverage .",
|
||||
"lint": "eslint src --max-warnings=0",
|
||||
|
||||
Reference in New Issue
Block a user