-
-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🔨 Add wrangler.toml file #3846
🔨 Add wrangler.toml file #3846
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Quick links (staging server):
Login:
SVG tester:Number of differences (default views): 0 ✅ Edited: 2024-08-09 16:03:31 UTC |
f40b441
to
29ba21d
Compare
29ba21d
to
e63e906
Compare
I ran deployContentPreview and checked that the thumbnail worker there still does what it should: https://enable-wrangler-toml.owid-staging.pages.dev/grapher/thumbnail/life-expectancy I think it should be safe to merge this but when we do we should be vigilant in case there is some config weirdness in prod that isn't present in staging |
e63e906
to
f61425d
Compare
f61425d
to
ec1d880
Compare
28b2124
to
ad39546
Compare
ad39546
to
547277d
Compare
return new Response(JSON.stringify(info), { | ||
headers: { "Content-Type": "application/json" }, | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return new Response(JSON.stringify(info), { | |
headers: { "Content-Type": "application/json" }, | |
}) | |
return Response.json(info) |
26bef01
to
73fc4bd
Compare
@marcelgerber I squashed the changes now of this PR and removed the debug code again. The settings from wrangler.toml showed up in the dashboard for the preview now which is nice - only the secrets are still managed via the dashboard (which makes sense). On staging, some settings for dev keys were not set as secrets and with the introduction of wrangler.toml they then vanished (as they are not in wrangler.toml either). Since they should have been configured as secrets anyhow, I made sure to add the dev keys as secrets for the preview deployment in the CF dashboard. On prod, everything looks good (i.e. everything is configured as secrets except for the three vars that are set in wrangler.toml. As we discussed, since the preview deployment to CF and the prod deploy use the same mechanism and "./dist" folder, I think this should be good to go. I'd appreciate a quick look over it as a sanity check then we can finally merge this one :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, looks good!
73fc4bd
to
b8a840d
Compare
b8a840d
to
3e4455f
Compare
3e4455f
to
b8a840d
Compare
b8a840d
to
3e4455f
Compare
This PR adds a wrangler.toml file to the grapher repo for the pages functions. It should be a NO-OP in terms of functionality. It's added mostly so that we can use the toml file to add per-environment specific variables or bindings in the future.