So that error means all my server code combined is too big?
So that error means all my server code combined is too big?
.vercel/output/static/_worker.js but that's only 27KB for me__next-on-pages-dist__/functions/ in which case there is a file there that's over 1MB.cache field doesn't work on workers runtime. You can try next.revalidate: false to force cache
npx create cloudflare node:url and node:fs.vercel/output/static/_worker.js__next-on-pages-dist__/functions/cachenext.revalidate: falsenpx create cloudflarenode:urlnode:fsexport async function getData(slug: string) {
const response = await fetch(
`https://data.retuning/api/data/${slug}`,
{
headers: {
"Api-Access-Key": "XXXX",
},
}
);
const slugResult = (await response.json()) as unknown as SlugData;
return slugResult;
}const cache = await caches.open(name);
let response = await cache.match(buildCacheKey(key));
...
getRequestContext().ctx.waitUntil(
cache.put(buildCacheKey(key), response.clone())