When I tried this I got two workers, r2-registry and r2-registry-production, due to the commands largely adding --env production
Since that wasn't present for the secret put commands they went to the r2-registry worker instead of the -production one, causing me to experience some confusion about why the secret change wasn't taking effect.
This resolves that by adding --env production to the secret commands too. There could be an argument to made that removing it from all the commands works too, but this option seemed less destructive to the current instructions
When I tried this I got two workers,
r2-registry
andr2-registry-production
, due to the commands largely adding--env production
Since that wasn't present for the
secret put
commands they went to ther2-registry
worker instead of the-production
one, causing me to experience some confusion about why the secret change wasn't taking effect.This resolves that by adding
--env production
to the secret commands too. There could be an argument to made that removing it from all the commands works too, but this option seemed less destructive to the current instructions