Can't access environment variables

I had this issue and it took quite a while to figure out. By default dotenv-webpack will not pick up properly set environment variables, only those defined .env files - you need to add the systemvars: true setting if you want dotenv-webpack to pick up normal linux environment variables (the kind that are set in netlify build and similar environments).

7 Likes