I’m using netlify-cli to deploy my build, and this is my netlify.toml:
[build]
command = "npm run build"
publish = "dist"
[dev]
publish = "dist"
[[headers]]
for = "*.js" # js files should be set this way
[headers.values]
Cache-Control = "public, max-age=604800"
[[headers]]
for = "*.css" # css files too
[headers.values]
Cache-Control = "public, max-age=604800"
In App.js
const test = process.env.REACT_APP_API_URL;
console.log(test);
Test returns undefined.
Am i doing something wrong? I can’t link site for security reasons.