0.3.0 • Published 5 years ago
netlify-plugin-contextual-site-env v0.3.0
netlify-plugin-contextual-site-env
This plugin swaps out ENV vars on Netlify at build time. Here's how it works:
Say you have an ENV in your API code called DATABASE_URL. If you use this plugin, you'll be able to override that value based on a Site Name.
For example:
- A
site_asite name, would automatically setDATABASE_URLto the value ofSITE_A_DATABASE_URLif it exists.
Usage
Add the plugin
Add a [[plugins]] entry to your netlify.toml file:
[[plugins]]
package = 'netlify-plugin-contextual-site-env'0.3.0
5 years ago