Interesting. And do you happen to have api functions that use the fetch api to do a POST request? 👀
Interesting. And do you happen to have api functions that use the fetch api to do a POST request? 


export default { async queue(....) { .... } } ?process.env.TURSO_DATABASE_URL is undefiend during the build. It successes when I tried to set [env.production.vars] in wrangler.toml.wrangler.toml?process.env.TURSO_DATABASE_URL is still undefined[env.production.vars] of wrangler.tomlinvalid prerender config error on pages using export const dynamicParams = off Error: Failed to publish your Function. Got error: Your Functions script is over the 10 MiB size limit (workers.api.error.script_too_large) (in reality, I receive code: 8000000, but after talking with the Cloudflare team, the error above is correct). @next/bundle-analyzer to analyze my build's size:npm create cloudflare@latest my-next-app -- --framework=next@cloudflare/next-on-pagescan be run on Linux, Mac OS and Windows but its usage under the latter is discouraged as we've noticed that one of the CLI's dependencies, the Vercel CLI (used to build the Next.js application) seems not to work reliably on Windows. If you need to run@cloudflare/next-on-pageson Windows we advise you to run it under the Windows Subsystem for Linux.
export const runtime = 'edge';)?

fetch or tanstack query)export default { async queue(....) { .... } }// prisma.ts
import { PrismaClient } from "@prisma/client";
import { PrismaLibSQL } from "@prisma/adapter-libsql";
import { createClient } from "@libsql/client";
let prisma: PrismaClient;
const libsql = createClient({
url: process.env.TURSO_DATABASE_URL,
authToken: process.env.TURSO_AUTH_TOKEN,
});
export const prisma = new PrismaClient({ adapter });LibsqlError: URL_INVALID: The URL 'undefined' is not in a valid formatprocess.env.TURSO_DATABASE_URLprocess.env.TURSO_DATABASE_URLundefiend[env.production.vars][env.production.vars]invalid prerender configexport const dynamicParams = offError: Failed to publish your Function. Got error: Your Functions script is over the 10 MiB size limit (workers.api.error.script_too_large)code: 8000000@next/bundle-analyzernpm create cloudflare@latest my-next-app -- --framework=next@cloudflare/next-on-pages@cloudflare/next-on-pages'use client';
export const runtime = 'edge';
export default function Page() {
return (
<div>test</div>
);
} finni on FinnPC at …\zero via master npm run dev
> zero@0.1.0 dev
> next dev
*** Received structured exception #0xc0000005: access violation; stack: 7ff9a5cf301f 7ff7f240077b 7ff7f2400843 7ff7f23f447c 7ff7f23f4427 7ff7f1c6e1be 7ff7f1c6e4cf 7ff7f0b316f6 7ff7f0b314da 7ff7f1de665f 7ff7f1ded816 7ff7f1de6b7c 7ff7f1ded816 7ff7f1de44ec 7ff7f0b21541 7ff7f349559f 7ff9ca01257c 7ff9ca64af27
C:\Users\finni\Desktop\zero\node_modules\wrangler\wrangler-dist\cli.js:29765
throw a;
^
MiniflareCoreError [ERR_RUNTIME_FAILURE]: The Workers runtime failed to start. There is likely additional logging output above.
at #assembleAndUpdateConfig (C:\Users\finni\Desktop\zero\node_modules\miniflare\dist\src\index.js:9178:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Mutex.runWith (C:\Users\finni\Desktop\zero\node_modules\miniflare\dist\src\index.js:3521:16)
at async #waitForReady (C:\Users\finni\Desktop\zero\node_modules\miniflare\dist\src\index.js:9235:5)
at async Miniflare2._getProxyClient (C:\Users\finni\Desktop\zero\node_modules\miniflare\dist\src\index.js:9359:5)
at async Miniflare2.getBindings (C:\Users\finni\Desktop\zero\node_modules\miniflare\dist\src\index.js:9378:25)
at async getPlatformProxy (C:\Users\finni\Desktop\zero\node_modules\wrangler\wrangler-dist\cli.js:210805:20)
at async setupDevPlatform (C:\Users\finni\Desktop\zero\node_modules\@cloudflare\next-on-pages\dist\next-dev\index.cjs:183:23)
at async file:///C:/Users/finni/Desktop/zero/next.config.mjs:7:3 {
code: 'ERR_RUNTIME_FAILURE',
cause: undefined
}
Node.js v20.9.0| Bundle | Stat | Parsed | gzippped |
| ----------- | ------- | ------ | -------- |
| client.html | 15.43mb | 1.63mb | 0.49mb |
| edge.html | 24.49mb | 3.29mb | 0.89mb |
| nodejs.html | 14.29mb | 1.20mb | 0.35mb |
| TOTAL SUM | 54.21mb | 6.12mb | 1.73mb |