Locally the build works perfectly fine, but not when (auto) building inside Cloudflare
Locally the build works perfectly fine, but not when (auto) building inside Cloudflare
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

/webpack/" directory?/webpack/", as that isn't something your visitors will be using at all.dist/" or "build/" directory?__NEXT_INCREMENTAL_CACHE_IPC_KEY sensitive? It says "key" and looks random so I imagine it could be... but I'm not sure what it would be for. I don't see it documented anywhere but I see it in process.envconst 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: 14