This project is a minimal EdgeOne Pages site that reverse proxies a GitHub Pages origin through an Edge Function.
All requests are handled by edge-functions/[[default]].js, which forwards traffic to the GitHub Pages origin configured in GITHUB_ORIGIN.
GITHUB_ORIGIN in EdgeOne Pages.https://yourname.github.iohttps://yourname.github.io/your-repo if the site lives in a subpathLocation headers back to your EdgeOne domain.Use the EdgeOne Pages CLI for local development:
export GITHUB_ORIGIN="https://yourname.github.io"
# or: https://yourname.github.io/your-repo
edgeone pages dev
If GITHUB_ORIGIN is missing, function routes return 500 Missing GITHUB_ORIGIN....
If / returns an XML UserCnameInvalid response in local dev, ensure the root route is handled by edge-functions/index.js.
If you want me to wire this to a specific GitHub Pages URL and prepare the deployment flow, share the origin URL and whether you want the China or Global EdgeOne site.