The only thing I can think of is that in my page.tsx file I import in a 1mb json file. Could that be
The only thing I can think of is that in my page.tsx file I import in a 1mb json file. Could that be whats slowing it down?
npm create cloudflare@latest select "Website or web app" and "Next". Uncomment the KV section in wrangler.toml and app/api/hello/route.ts. start dev server npm run dev and visit http://localhost:3000/api/hello . If that works for you, then check that you have all the needed packages and correct versions (wrangler & @cloudflare/next-on-pages) etc.getRequestContext() on the edge and I can only set export const runtime = "edge"; within an api route, right? (Nextjs 14)use server within the files in your D1 folder? updateItem(id, value) that is called in client component via onClick.console.log("updateItem starts"), it doesn't even appear on CF logs. And what is strange, on CF logs there are multiple calls to the url (2-6 extra requests on average).
Could not find a declaration file for module '@cloudflare/next-on-pages/next-dev'. on import { setupDevPlatform } from '@cloudflare/next-on-pages/next-dev' in next.config.mjs. Any suggestions?GET /user thats is requested on initila page loadapps/nextjs/next-on-pages.d.ts file with use serverupdateItem(id, value)console.log("updateItem starts")Could not find a declaration file for module '@cloudflare/next-on-pages/next-dev'. import { setupDevPlatform } from '@cloudflare/next-on-pages/next-dev'GET /userimport {jwtDecode} from 'jwt-decode'
jwtDecode(headers().get('cf-access-jwt-assertion'))['email']BREAKING CHANGE: Since webpack 5 WebAssembly is not enabled by default and flagged as experimental feature.export const dynamicParams = falseapps/nextjs/next-on-pages.d.tsdeclare module '@cloudflare/next-on-pages/next-dev' {
export function setupDevPlatform(): Promise<void>
}