export const ```runtime = "edge";``` do i have to put this in every page.tsx / route.ts / layout.ts
export const
do i have to put this in every page.tsx / route.ts / layout.tsx ?
do i have to put this in every page.tsx / route.ts / layout.tsx ?
runtime = "edge";wrangler.toml.wrangler.toml. Did anyone manage to fix this problem?compatibility_date = "2024-05-13" to wrangler.toml.
runtime = 'experimental-edge on my custom _app but not on the page.tsx itself because I run into missing packages that's related to Firebase Auth. Exporting runtime = 'edge' also doesn't work. Everything works as intended on local development but it breaks on build. Is there anything else I should try?const users = await fetch(USERS_URL, { next: { revalidate: 60 } }).then(…)The script will never generate a response when trying to use fetch() in my generateMetaData function in NextJS 14. I've seen a lot of similar bugs reported on this but haven't been able to find a solution. Is anyone familiar with this?A hanging Promise was canceled. This happens when the worker runtime is waiting for a Promise from JavaScript to resolve, but has detected that the Promise cannot possibly ever resolve because all code and events related to the Promise's I/O context have already finished._headers file so I don't need to manually edit ./.vercel/output/static/_headers after every build?compatibility_date = "2024-05-13"⚡️ ERROR: Failed to produce a Cloudflare Pages build from the project.
⚡️
⚡️ The following routes were not configured to run with the Edge Runtime:
⚡️ - /posts/[slug]
⚡️
⚡️ Please make sure that all your non-static routes export the following edge runtime route segment config:
⚡️ export const runtime = 'edge';runtime = 'experimental-edge_appruntime = 'edge'const users = await fetch(USERS_URL, { next: { revalidate: 60 } }).then(…)The script will never generate a responseA hanging Promise was canceled. This happens when the worker runtime is waiting for a Promise from JavaScript to resolve, but has detected that the Promise cannot possibly ever resolve because all code and events related to the Promise's I/O context have already finished. (error) TypeError: Cannot read properties of null (reading 'useContext')
(error) TypeError: Cannot read properties of null (reading 'useContext')
(error) ⨯ TypeError: Cannot read properties of null (reading 'useContext')
(error) ⨯ TypeError: Cannot read properties of null (reading 'default')name = "<TBC>"
compatibility_flags = [ "nodejs_compat" ]
pages_build_output_dir = ".vercel/output/static"