Any update on this? `import`ing JSON doesn't seem to work
Any update on this?
importing JSON doesn't seem to workimporttry...catch next() wrapper: https://github.com/cloudflare/pages-plugins/blob/main/packages/sentry/functions/_middleware.tsgiven object's own enumerable string-keyed property names
headers specifically amongst others.

Object.keys() or console.log()) and they're also on the prototype (so not picked up by Object.getOwnPropertyNames() which looks at the instance) - but there are ways to print out what's on them.console.log a Web API type in Node/Browsers/etc
^1.0.0 (note the ^), then any version compatible with 1.0.0 could be installedfunctions/getFeed.js file are currently@cloudflare/next-on-pages, the functions directory will not work as we generate our own _worker.js instead, and, as such, you should use Next.js Edge API routes instead.
14:28:36.759 ✨ Upload complete!
14:28:40.138 Could not generate the asset manifest. Please try again. If this continues to fail, please consider posting in our Discord (https://discord.gg/cloudflaredev) or create a ticket and reference the deployment ID.
14:28:41.289 Failed: an internal error occurred
14:28:41.289 Error: Failed to publish assets. For support, join our Discord (https://discord.gg/cloudflaredev) or create a ticket and reference the deployment ID: 4c6a572e-849d-4616-a765-622978e75584try...catchnext()export function onRequest(context) {
return new Response(Object.keys(context.request)) // return Empty output
return new Response(Object.keys(context.request.cf)) // Return a lot of properties
}headersObject.keys()console.log()Object.getOwnPropertyNames()^1.0.0^1.0.0functions/getFeed.js_worker.jsJSON.stringify(req, Object.getOwnPropertyNames(Object.getPrototypeOf(req)), '\t')console.log({
url: req.url,
method: req.method,
...
});for (const property in req) {
console.log(`${property}: ${req[property]}`);
}<html>
<head>
<script src="https://unpkg.com/htmx.org@1.9.4"></script>
<script src="https://unpkg.com/hyperscript.org@0.9.11"></script>
</head>
<script>
function loadIndex() {
console.log('test');
htmx.ajax('GET', '/getFeed', {target: "#swap", headers: {
}})
}
</script>
<body onload="loadIndex()">
...
</body>
</html>export const onRequestGet = () => {
return new Response("Hello, world!")
}