Skip to content

Environment Variables

Compare
Choose a tag to compare
@jonwinton jonwinton released this 13 Jul 15:17
· 226 commits to master since this release

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(....)