export default { async fetch(request) { const upstreamUrl = new URL(request.url); // Send the request through the existing working Tunnel hostname. upstreamUrl.protocol = "https:"; upstreamUrl.hostname = "gokapi.pythoniac.com"; upstreamUrl.port = ""; // Preserves method, headers and streaming request body. return fetch(new Request(upstreamUrl, request)); }, };