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; ... }

·
·

This would be very useful for me. The step of adding phpdotenv to every site I build get tiresome.

no votes yet

Add environment variables per site

7 total votes
Quick Actions
Activity
View recent activity and updates
Use arrow keys to navigate