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

Convert site URLs during deployment #34

Open
@AetherUnbound

Description

@AetherUnbound

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions