Try 1:
"scripts": {
"start": "react-scripts start",
"build": "set REACT_APP_STAGE=dev && react-scripts build",
"test": "react-scripts test",
}
Try 2:
"scripts":
"start": "react-scripts start",
"build": "NODE_ENV=dev&&react-scripts build",
"test": "react-scripts test"
}
//Also tried with and without space
Script,
export const configuration = process.env.NODE_ENV === 'production'
? prod
: dev;
- Всегда возвращает разработку локально и в производствов трубопроводе
Я знаю, что есть так много вопросов, я пробовал все комбинации, которые никогда не помогали.