diff --git a/frontend/package.json b/frontend/package.json index 45441a7ee..725c487b8 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -4,9 +4,9 @@ "private": true, "license": "AGPL-3.0", "scripts": { - "build" : "cross-env NODE_ENV=production dotenv -- ./build.sh", - "build:mock" : "cross-env NEXT_PUBLIC_USE_MOCK_API=true dotenv -- ./build.sh", - "build:test" : "cross-env NODE_ENV=test NEXT_PUBLIC_TEST_MODE=true dotenv -c test -- ./build.sh", + "build": "dotenv -v NODE_ENV=production -c production -- ./build.sh", + "build:mock": "dotenv -v NEXT_PUBLIC_USE_MOCK_API=true -- ./build.sh", + "build:test": "dotenv -v NODE_ENV=test -v NEXT_PUBLIC_TEST_MODE=true -c test -- ./build.sh", "analyze": "cross-env ANALYZE=true yarn build --profile", "format": "prettier -c \"src/**/*.{ts,tsx,js}\" \"cypress/**/*.{ts,tsx}\"", "format:fix": "prettier -w \"src/**/*.{ts,tsx,js}\" \"cypress/**/*.{ts,tsx}\"", @@ -152,7 +152,7 @@ "cypress": "13.1.0", "cypress-commands": "3.0.0", "cypress-fill-command": "1.0.2", - "dotenv-cli" : "7.3.0", + "dotenv-cli": "7.3.0", "eslint": "8.48.0", "eslint-config-next": "13.4.19", "eslint-config-prettier": "9.0.0", diff --git a/package.json b/package.json index 9fa18d02f..81f2141f1 100644 --- a/package.json +++ b/package.json @@ -12,12 +12,12 @@ "markdown-it-plugins" ], "scripts": { - "build": "dotenv -- turbo run build", - "lint": "dotenv -- turbo run lint", - "lint:fix": "dotenv -- turbo run lint:fix", - "format": "dotenv -- turbo run format", - "start:dev": "dotenv -- turbo run start:dev", - "start": "dotenv -- turbo run start", + "build": "dotenv -c production -- turbo run build", + "lint": "dotenv -c development -- turbo run lint", + "lint:fix": "dotenv -c development -- turbo run lint:fix", + "format": "dotenv -c development -- turbo run format", + "start:dev": "dotenv -c development -- turbo run start:dev", + "start": "dotenv -c production -- turbo run start", "test:ci": "dotenv -c test -- turbo run test:ci", "test": "dotenv -c test -- turbo run test" },