Skip to content

[BUG] Performance is unusably slow #653

Open
@dymoo

Description

@dymoo

Describe the bug

Image

I have all the caching functionality enabled but ttfb still ranges from 1.2s to almost 3 seconds!

Most of my pages are staticky rendered. My landing page reads the 'CF-IPCountry' header to localise pricing to the customers IP address. I don't have any middleware

Image

CPU & wal times vary massively (i'd assume some pages need to be rendered, others can be pulled from cache?)

Unfortunately this makes this library almost completely un usable for almost all websites.

Am I doing something wrong? 3 seconds TTFB will cause customers to stop navigating to the site.

Steps to reproduce

Almost any @opennextjs/cloudflare deployment.

Expected behavior

Pages not to take 1-3 seconds to send first byte.

@opennextjs/cloudflare version

1.0.1

Wrangler version

^4.14.1

next info output

Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 24.4.0: Fri Apr 11 18:33:40 PDT 2025; root:xnu-11417.101.15~117/RELEASE_ARM64_T6031
  Available memory (MB): 49152
  Available CPU cores: 16
Binaries:
  Node: 22.14.0
  npm: 10.9.2
  Yarn: 1.22.22
  pnpm: 9.12.1
Relevant Packages:
  next: 15.3.1 // There is a newer version (15.3.2) available, upgrade recommended! 
  eslint-config-next: 15.2.3
  react: 19.1.0
  react-dom: 19.1.0
  typescript: 5.8.3
Next.js Config:
  output: N/A
 ⚠ There is a newer version (15.3.2) available, upgrade recommended! 
   Please try the latest canary version (`npm install next@canary`) to confirm the issue still exists before creating a new issue.
   Read more - https://nextjs.org/docs/messages/opening-an-issue

Additional context

open-next.config.ts:

import { defineCloudflareConfig } from "@opennextjs/cloudflare";
import doQueue from "@opennextjs/cloudflare/overrides/queue/do-queue";
import kvIncrementalCache from "@opennextjs/cloudflare/overrides/incremental-cache/kv-incremental-cache";

export default defineCloudflareConfig({
  queue: doQueue,
  enableCacheInterception: true,
  incrementalCache: kvIncrementalCache,
});

the https://vercel-commerce-on-workers.web-experiments.workers.dev/ deployment's TTFB seems to range from 500-800ms which is much more reasonable. Is anyone able to link to its repo so I can compare my configs/versions? I can't find it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions