mindfulplays
CDCloudflare Developers
•Created by mindfulplays on 7/16/2024 in #workers-help
Redirect/Route a Worker (specific URL) to Pages
Say I have a Worker A that handles requests on a website a.com and some Pages B (b.pages.dev - using say Astro). How do I add a 'service binding'-like such that a.com/blah is actually serving b.pages.dev (and prevent public access to b.pages.dev using Access)?
Note Pages B isn't a static deployment but more like SSR (a la Astro not Hugo) - so I don't have a collection of files in KV to use Worker A on.
Really, I would like to use Pages B as a Worker using service binding....
[I saw that Workers/Pages were merging, but the docs are scarce. ]
1 replies