(request)=>{ // Log the URL parameter if it's in the request URL const url = new URL(request.url); const urlParam = url.searchParams.get("url"); if (urlParam) { console.log("URL parameter received:", urlParam); } const renderedContent = renderToString(/*#__PURE__*/ _jsxs("html", { children: [ /*#__PURE__*/ _jsx("head", { children: /*#__PURE__*/ _jsx("title", { children: "Page Title" }) }), /*#__PURE__*/ _jsx("body", { children: /*#__PURE__*/ _jsxs("form", { action: "https://willthereader--de444536ebbb11efa6a0e6cdfca9ef9f.web.val.run", method: "post", children: [ /*#__PURE__*/ _jsx("label", { htmlFor: "url", children: "link:" }), /*#__PURE__*/ _jsx("input", { type: "url", id: "url", name: "url", required: true }), /*#__PURE__*/ _jsx("br", {}), /*#__PURE__*/ _jsx("input", { type: "submit", value: "Submit" }) ] }) }) ] })); return new Response(renderedContent, { headers: { "Content-Type": "text/html" } }); }