you can't use pages functions if you're using next-on-pages - you need to use nextjs API routes inst
you can't use pages functions if you're using next-on-pages - you need to use nextjs API routes instead

next-cf-demo@0.1.0 preview
npm run pages:build && wrangler pages dev
next-cf-demo@0.1.0 pages:build
npx @cloudflare/next-on-pages
npx vercel build.__NEXT_ON_PAGES__KV_SUSPENSE_CACHE, for us the KV is never being populated with fetch data, even when I use force-cachecache: 'no-store'?fetch(..., { next: { revalidate: 0 }})https://d8bad4bc.cloudnet-webinterface.pages.dev/en/sasag (anything that doesn't exist should give a proper 404, but it doesn't in this deployment..?)
*
17:20:13.217 ▲ Traced Next.js server files in: 350.916ms
17:20:13.293 ▲ Created all serverless functions in: 75.798ms
17:20:17.060 ▲ Collected static files (public/, static/, .next/static): 8.876ms
17:20:17.580 ▲ Build Completed in .vercel/output [1m]
17:20:18.797 ⚡️ Completed `pnpm dlx vercel build`.
17:20:22.087 ⚡️ Unexpected error: Unexpected character '�' (156:302845)
17:20:23.000 Failed: Error while executing user command. Exited with error code: 1
17:20:23.012 Failed: build command exited with code: 1
17:20:24.263 Failed: error occurred while running build commandnpm run dev__NEXT_ON_PAGES__KV_SUSPENSE_CACHEcache: 'no-store'fetch(..., { next: { revalidate: 0 }})https://d8bad4bc.cloudnet-webinterface.pages.dev/en/sasag