Enviroment variables in config.production.json

Hello, I would like to ask for the help about usage of environment variables in config.production.json. I could not find any guidelines therefore I’m trying to get help here. I’m hosting my ghost blog on Heroku, the environment variables are defined there and the build is successful however it won’t work as the JSON is just a text file when I define my variables as ‘string’. For example: “url”: “process.env.URL”,

1 Like

Docs are here:

1 Like

Nothing in there about loading .env values. Is this not the correct way to hide these secrets?

There are two options - a config.production.json (or development), or environment variables. Most vps setups use the json file, while docker setups use environment variables.