ampproject / cloudflare-amp-optimizer

Implementation of AMP Optimizer for Cloudflare Workers
Apache License 2.0
23 stars 5 forks source link

Move configuration to env bindings #11

Open evanderkoogh opened 3 years ago

evanderkoogh commented 3 years ago

Allows you to keep the code the same and configure it via the dashboard bindings screen.

samouri commented 3 years ago

In the dashboard it claims the wrangler.toml file should be used instead?

Screen Shot 2021-04-08 at 3 33 26 PM

evanderkoogh commented 3 years ago

There are 2 ways to configure environment variables. If you use wrangler to deploy, you need to configure everything in wrangler.toml and if you don't, you need to use the Dashboard.