compatibility_flags = ["nodejs_compat"] in wrangler.toml but on publish, the deployed result says it must be enabled from dashgetRequestContext from a next handler for local dev
getRequestContext utility in the edge runtime?process.env and it worked actuallyprocess.env works getRequestContext should work as well export const runtime = "edge";process.env worked without it somehowprocess.env you had used the same variable name for something else? .env into process.env.env too

❯ yarn wrangler deploy .vercel/output/static/_worker.js/index.js --dry-run --compatibility-date 2024-02-22 --name test
wrangler pages deploy not wrangler deploy, can you try that? 
node:async_hooks one), it's likely due to using the wrong commandwrangler deploy somewhere? 
Workers documentation, not Pages documentation....Pages documentation wrangler pages deploy)import { setupDevPlatform } from "@cloudflare/next-on-pages/next-dev";
if (process.env.NODE_ENV === "development") {
await setupDevPlatform({});
}compatibility_flags = ["nodejs_compat"]