CLI to build and develop Next.js apps for Cloudflare Pages
### next-on-pages environment related information _No response_ ### Description #836. It seems that there are side effects to replace `globalThis` with a `Proxy` object. When calling functions like `globalThis.queueMicrotask()` in a route, it throws: > TypeError: Illegal invocation: function called with incorrect `this` reference. ### Reproduction ```jsx export default function Home() { globalThis.queueMicrotask(() => {}); return <html>It works!</html>; } ``` Full repo: https://github.com/lujjjh/next-on-pages-routes-isolation-issue ### Pages Deployment Method None ### Pages Deployment ID _No response_ ### Additional Information _No response_ ### Would you like to help? - [ ] Would you like to help fixing this bug?
This issue appears to be discussing a feature request or bug report related to the repository. Based on the content, it seems to be still under discussion. The issue was opened by lujjjh and has received 2 comments.