Skip to content
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

feature: Editable redirects #115

Merged
merged 2 commits into from
Jan 20, 2024
Merged

feature: Editable redirects #115

merged 2 commits into from
Jan 20, 2024

Conversation

jbmoelker
Copy link
Member

@jbmoelker jbmoelker commented Jan 20, 2024

Changes

  • Adds editable redirects to the CMS (Redirect Rule model).
  • Adds postbuild script to download redirects and save to a _redirects file.
  • Adds documentation on routing, including redirects.

Associated issue

Resolves #64
Docs part of #71

How to test

  1. Review the new Redirect Rules model in the CMS
  2. Create or edit Redirect Rules in the CMS (requires rebuild to take effect)
  3. Open the preview deployment
  4. Verify that the redirect rules work (also try reordering them):

Checklist

  • I have performed a self-review of my own code
  • I have made sure that my PR is easy to review (not too big, includes comments)
  • I have made updated relevant documentation files (in project README, docs/, etc)
  • I have added a decision log entry if the change affects the architecture or changes a significant technology
  • I have notified a reviewer

Copy link

cloudflare-workers-and-pages bot commented Jan 20, 2024

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 773150a
Status: ✅  Deploy successful!
Preview URL: https://f47dd1ba.head-start.pages.dev
Branch Preview URL: https://feat-editable-redirects.head-start.pages.dev

View logs

@jbmoelker jbmoelker marked this pull request as ready for review January 20, 2024 12:24
@jbmoelker jbmoelker requested review from decrek and phortuin January 20, 2024 12:24
@jbmoelker jbmoelker merged commit d469db7 into main Jan 20, 2024
4 checks passed
@jbmoelker jbmoelker deleted the feat/editable-redirects branch January 20, 2024 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Editable redirects
1 participant