Skip to main content
import * as BunnySDK from "https://esm.sh/@bunny.net/[email protected]";

BunnySDK.net.http.serve(
  async (request: Request): Response | Promise<Response> => {
    const url = new URL(request.url);

    const fetchUrl = "https://example.com";

    return fetch(fetchUrl + url.pathname);
  },
);