Frontend: Readd .env for non-docker development
This commit is contained in:
parent
4462be33a0
commit
edd10457b5
@ -4,7 +4,7 @@
|
||||
"scripts": {
|
||||
"start": "npm run start:dev",
|
||||
"start:dev": "set NODE_ENV=DEV && ts-node-dev --transpile-only src/app.ts",
|
||||
"start:debug": "nodemon --exec node --inspect=0.0.0.0:9229 --require ts-node/register src/app.ts --ext '.ts,.yml'",
|
||||
"start:debug": "nodemon --exec node --inspect=0.0.0.0:9229 --require ts-node/register src/app.ts --ext 'ts,yml' --watch",
|
||||
"start:prod": "ts-node-transpile-only src/app.ts",
|
||||
"test": "npm run test:unit && npm run test:int",
|
||||
"test:int": "ts-mocha --exit test/e2e/test.ts",
|
||||
|
2
frontend/env/.env.dev
vendored
2
frontend/env/.env.dev
vendored
@ -2,4 +2,4 @@ PORT=4200
|
||||
REACT_APP_API_URL="http://localhost:3000/v2"
|
||||
REACT_APP_CDN_URL="http://localhost:3000/assets"
|
||||
REACT_APP_REPO="https://github.com/accord-dot-app/app"
|
||||
REACT_APP_ROOT_API_URL="http://localhost:4200"
|
||||
REACT_APP_ROOT_API_URL="http://localhost:3000"
|
@ -50,8 +50,8 @@
|
||||
},
|
||||
"scripts": {
|
||||
"start": "npm run start:dev",
|
||||
"start:dev": "set PORT=4200 && craco start",
|
||||
"start:prod": "craco start",
|
||||
"start:dev": "dotenv -e env/.env.dev craco start",
|
||||
"start:prod": "dotenv -e env/.env.prod craco start",
|
||||
"build:dev": "dotenv -e env/.env.dev craco build",
|
||||
"build:prod": "dotenv -e env/.env.prod craco build",
|
||||
"test": "craco test",
|
||||
|
Loading…
x
Reference in New Issue
Block a user