Skip to content

Releases: cloudflare/next-on-pages

[email protected]

08 Dec 19:25
0c2c2fa
Compare
Choose a tag to compare

@cloudflare/[email protected]

08 Dec 19:25
0c2c2fa
Compare
Choose a tag to compare

Patch Changes

  • 8fe72f1: make CLI arguments parsing more flexible

    prior to this change the CLI arguments parsing was not too flexible and forced a specific style

    For instance the only way to provide an argument for the outdir option was to pass it using = as in:

    -o=./my-dir
    

    or

    --outdir=./my-dir
    

    these changes make the CLI arguments parsing more flexible and don't enforce a specific style
    (--outdir ./my-dir now also works as you'd expect it to)

  • 20d0e0d: Fix _not-found functions only for applications using the App Router

    In #418 we introduced a workaround
    that would delete invalid (nodejs) _not-found functions during the build process

    Although the workaround is valid for applications using the App Router it is not
    for applications only using the Pages Router, so make sure that it is only applied
    when the former is used

[email protected]

04 Dec 17:29
91acc21
Compare
Choose a tag to compare

@cloudflare/[email protected]

04 Dec 17:29
91acc21
Compare
Choose a tag to compare

Patch Changes

  • 61d0a2f: print warning in case developers are using a different package manager to run @cloudflare/next-on-pages

  • 1e73555: Fix route intercepts causing 404s for the non-intercepted route.

  • 1e73555: Fix route intercept modals not getting all the parameters for a route.

  • b7f9225: improve unhelpful error message (so that instead of [object Object] it prints the actual error message)

  • bc216b4: Improved support for newer version of Next.js with the suspense cache through trying to handle soft/implicit tags properly

  • 8ece962: fix external middleware rewrites

    Currently Middleware rewrites (NextResponse.rewrite()) assume that the rewrite destination
    is on the same host as the application, meaning that the following operations would work as intended:

    NextResponse.rewrite(new URL('/rewrite-dest', request.url));

    while something like this would not:

    return NextResponse.rewrite(
      new URL('https://my-customer-rewrite-site.come/rewrite-dest', request.url),
    );

    Remove such assumption and allow such external rewrites to take place (as they do on Vercel)

  • bc216b4: Fix old version of Next.js not updating a cache entry properly due to not receving the correct shape they expected.

@cloudflare/[email protected]

26 Nov 16:47
733fed9
Compare
Choose a tag to compare

Minor Changes

  • 888ae85: Add support for using a KV to implement the Suspense Cache via naming convention

    With this change users can have their suspense cache implemented via a KV binding, in order to
    opt-in to such implementation they simply need to make sure that their application has a KV binding
    named __NEXT_ON_PAGES__KV_SUSPENSE_CACHE (the next-on-pages worker will pick up such
    binding and use it to implement the suspense cache instead of using the default workers cache API).

Patch Changes

  • f364224: Set x-vercel-sc-host request header for older versions of Next.js for the suspense cache.
  • d7b34cc: Falling back to header if cache tags are not given from fetched CachedFetchValue object. The change was introduced from Next.js 13.5+.
  • dbe2c78: Update the matcher for the temp fix for a Next.js bug to match more chars.

[email protected]

20 Nov 21:34
1c746ea
Compare
Choose a tag to compare

Patch Changes

  • 48796ca: Support for using src folder with no-app-not-found-runtime lint rule
  • 48796ca: Use correct name for export of no-app-not-found-runtime lint rule
  • c9167ea: Support for file extensions .mjs in no-unsupported-configs ESLint rule

@cloudflare/[email protected]

20 Nov 21:34
1c746ea
Compare
Choose a tag to compare

Patch Changes

  • 9d5db04: Fix broken /__index.prefetch.rsc rewrites that were being rewritten to /__index (and 404ing) due to to rsc suffix stripping that we do.

[email protected]

11 Nov 14:53
3dc3ac4
Compare
Choose a tag to compare

@cloudflare/[email protected]

11 Nov 14:53
3dc3ac4
Compare
Choose a tag to compare

Patch Changes

  • c83d125: Temporary hotfix for vercel/next.js#58265 so that rendering in Next.js >= 14.0.2 works.
  • bf57ec9: Fix prerendered next.config.js basePath root infinite redirect due to Cloudflare Pages handling of /{path}/index.
  • bf57ec9: Fix nested index.rsc routes not generating a non-index override.
  • 9b290cb: Output more information about the sizes of identifiers and functions, as well as all of the consumers of each identifier.
  • bf57ec9: Fix the /_not-found invalid function hack to work with next.config.js basePath.
  • ee237f3: Patch the fetch function inside the fetch handler, instead of in the global scope.
  • bf57ec9: Fix unncessary invalid function at the root not being discarded when using next.config.js basePath option.

[email protected]

21 Oct 21:40
f9b7ced
Compare
Choose a tag to compare