Answer the question
In order to leave comments, you need to log in
Correct setting of environment variables when building SPA?
Is it necessary to specify environment variables in a script command?
for example
package.json: "build" : "API_URL=api/ node app.js"
And in the build: npm run build
or can you specify when building a teamcity like this?
package.json: "build" : "node app.js"
And in assembly:
ENV API_URL=api/
npm run build
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question