Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Convert site URLs during deployment #34

Open
AetherUnbound opened this issue Nov 6, 2022 · 0 comments
Open

Convert site URLs during deployment #34

AetherUnbound opened this issue Nov 6, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@AetherUnbound
Copy link
Contributor

Currently in order to use the site, we have our "Sites" set to 2023.pycascades.com. This makes it so that all references throughout the site link to that base domain (e.g. /about -> 2023.pycascades.com/about).

The trouble with this setup is that it makes navigating on our staging site impossible to do with just clicking around, since each link on pycascades-cms.herokuapp.com goes to 2023.pycascades.com. We can't change the Site setting in wagtail to pycascades-cms.herokuapp.com though, because then when we deploy all of the links on 2023.pycascades.com would link back to heroku instead.

It would be ideal if we could set up the site to be pycasades-cms.herokuapp.com in Wagtail but during the netlify deployment step rewrite all of those links to 2023.pycascades.com. This way navigation on the staging site would be restored while ensuring all links on the prod deployed site reference production rather than staging.

@AetherUnbound AetherUnbound added the bug Something isn't working label Nov 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant