--frozen-lockfile?node:async_hooks inside of the custom entrypoint. However, it errors out:
env variable when my project is build on cloud flare. process.env.MY_VARIABLE is unable to work.
I tried to push my variables via wrangler, via the dashboard, everything. Do you have an idea ?This ReadableStream is disturbed (has already been read from), and cannot be used as a body.. Wonder if anybody else is seeing this?Request, but in a Server Action we simply receive the payload

Adding the packageManager field to our package.json fixed it, e.g.
"packageManager": "pnpm@9.12.2+sha256.2ef6e547b0b07d841d605240dce4d635677831148cd30f6d564b8f4f928f73d2",✘ [ERROR] Could not resolve "node:async_hooks"
2 │ import { AsyncLocalStorage } from 'node:async_hooks';
╵ ~~~~~~~~~~~~~~~~~~
The package "node:async_hooks" wasn't found on the file system but is built into node. Are you
trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this
error.info - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
23:13:35.716 ▲ Failed to compile.
23:13:35.717 ▲ ./src/app/[locale]/categorieen/[...id]/page.tsx:1:10
23:13:35.717 ▲ Type error: Module '"react"' has no exported member 'use'.
23:13:35.718 ▲
23:13:35.718 ▲ > 1 | import { use } from 'react';
23:13:35.718 ▲ | ^
23:13:35.718 ▲ 2 | import { and, eq, isNotNull } from 'drizzle-orm';
23:13:35.718 ▲ 3 | import { redirect } from '@/i18n/routing';
23:13:35.718 ▲ 4 | import { notFound } from 'next/navigation';
23:13:35.783 ▲ ELIFECYCLE Command failed with exit code 1.
23:13:35.823 ▲ Error: Command "pnpm run build" exited with 1const wpURL = `${process.env.NEXT_PUBLIC_WP_API}/wp-json/wp/v2/${type}?page=${page}`
let wpReq = new Request(wpURL, {
method: 'GET',
cf: {
cacheTtl: WP_CACHE_TIME,
cacheEverything: true,
},
})
const wpResp = await fetch(wpReq)
if (!wpResp.ok) {
console.error('failed to fetch wp content', wpResp.status)
return {}
}
const wpRes = await wpResp.json()
wpResp.headers.forEach((value, name) => {
console.log(`header ${name}: ${value}`)
}) (log) header x-cache: BYPASS
(log) header x-content-type-options: nosniff
(log) header x-robots-tag: noindex
(log) header x-server: sparta-front-01
(log) header x-skip-cache: 1
(log) header x-wp-total: 138
(log) header x-wp-totalpages: 14This ReadableStream is disturbed (has already been read from), and cannot be used as a body.