Skip to content

Instantly share code, notes, and snippets.

@Gictorbit
Created March 8, 2023 11:57
Show Gist options
  • Save Gictorbit/4bef391c3544ea1d4fdd8e9152f03afa to your computer and use it in GitHub Desktop.
Save Gictorbit/4bef391c3544ea1d4fdd8e9152f03afa to your computer and use it in GitHub Desktop.
cloudflare worker code
addEventListener(
"fetch", event => {
let url = new URL(event.request.url);
url.hostname = "Your-Replit-Address";
url.protocol = "https";
let request = new Request(url, event.request);
event.respondWith(
fetch(request)
)
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment