# Add environment variables per site

**Project:** Sites | **Board:** Planned | **Votes:** 8
**URL:** https://roadmap.ploi.io/projects/2-site-level-requests/items/289-add-environment-variables-per-site

---

On services like Netlify you can add environment variables in a key/value format that are then available to the application at build/runtime. Could this be implemented so if the site does not support e.g. phpdotenv (.env) we could still use environment variables and getenv() in our application.

The interface would then generate something like this effectively in the nginx config

location / {
...
   fastcgi_param   APPLICATION_ENV  production;
   fastcgi_param   APPLICATION_CONFIG user;
...
}


---

## Comments

**Joel Szwarga** (2024-01-31T19:47:52+00:00):
This would be very useful for me. The step of adding phpdotenv to every site I build get tiresome.

