Environment Variables
New feature! Environment variables are sent to the client for model.js files! #421
This only occurs in edit mode!
Simply pass an env
property to Amphora at instantiation with an array of environment variables that you want resolved.
amphora({
app: app,
renderers: {
html: amphoraHtml,
default: 'html'
},
env: ['FOO', 'BAR']
}).then(....)