-
Notifications
You must be signed in to change notification settings - Fork 12
Deprecate weburl key in config.toml #455
Comments
This might be super tricky because of the use of the scripts in |
OK, so the command section supports chaining commands with So we could change
|
This is WAY easier than I thought. Per some folks at Netlify, you don't use the build variable in the So this: https://github.com/devopsdays/devopsdays-theme/blob/master/bin/netlify-production.sh#L3 becomes and this: https://github.com/devopsdays/devopsdays-theme/blob/master/bin/netlify.sh#L3 becomes This is super messy though, because the value for $URL begins with |
for this to work, we would need to disable the cloudflare acceleration: https://www.netlify.com/docs/ssl/ Although those same docs say we can use our own cert, which we can get from cloudflare, but the netlify config page doesn't show that option anymore. |
We aren't the cloudflare CDN in a meaningful way (or at least not in a way that netlify doesn't replace) so it's possible that we could use cloudflare for DNS only. I'm experimenting doing this first on test.devopsdays.org and then I'll try it on dev for a while before considering it in prod. |
I fixed the netlify scripts in #459; bear in mind that since this is outside of the deployed theme, we will need to do this in |
This depends upon devopsdays/devopsdays-web#2218 being fixed first. |
OK, so based upon some experimenting with mattstratton/castanet, this won't quite work yet. There's a bug in Netlify where the |
Per our discussion I'd prefer to remove the cloudflare dependency entirely. |
It's already gone. |
Also, Netlify alledgedly fixed the |
Expected behavior
We should be using the Hugo standard patterns of
baseURL
along withabsURL
andrelURL
to generate URLs.Actual behavior
Instead, we have this wonky
weburl
key, which makes testing certain things challenging with deploy previews.Reproduction Steps
No reproduction steps
The overall issue is solved in the
netlify.toml
section, through judicious use ofURL
andDEPLOY_PRIME_URL
environment variables in the build contexts. That is to say, thebaseURL
for production should beURL
, but for deploy previews it should beDEPLOY_PRIME_URL
.The text was updated successfully, but these errors were encountered: