voorhoede / head-start

Base setup on top of headless services to help you quickly start a new website
ISC License
3 stars 0 forks source link

fix: Preview mode routing #127

Closed jbmoelker closed 5 months ago

jbmoelker commented 5 months ago

Changes

Errors occurred in preview mode caused by incorrect API route URLs and the new nested pages route ([...path]). This PR resolves those by:

Associated issue

N/A

How to test

  1. Open preview link
  2. Enter preview secret
  3. Verify you enter preview mode
  4. Verify home page(s) render
  5. Verify generic page(s) render
  6. Exit preview mode
  7. Verify that works too

Checklist

cloudflare-pages[bot] commented 5 months ago

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6699deb
Status: âœ…  Deploy successful!
Preview URL: https://4b61b1bd.head-start.pages.dev
Branch Preview URL: https://fix-preview-mode-routing.head-start.pages.dev

View logs