Skip to content

v1.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 16 May 12:00
· 284 commits to main since this release
f010420

Major Changes

  • 3e2dad8: use and rely on AsyncLocalStorage

    previously we've been using the node AsyncLocalStorage in a non-breaking way but now we are committing
    to in and using it to store the global env variables as well

    this is a breaking change since moving forward all app running using @cloudflare/next-on-pages must
    have the nodejs_compat compatibility flag set (before not all needed that)

Minor Changes

  • 6fcb58b: make the experimental minification the default behavior and add an option to disabled it

    as part of this:

    • make --experimental-minify|-e a no-op argument which simply shows a warning which indicates that it is
      a deprecated option (we aren't removing the flag so that we don't break existing build scripts)
    • add a --disable-worker-minification|-m option to disable the minification of the _worker.js script (which
      currently coincides with the experimental minification)
  • e053756: add nodejs_compat runtime check

    add a runtime check for the presence of the nodejs_compat flag at runtime so that if developers
    forget to use such flag instead of receiving an internal server error they receive an error specifically
    telling them that they have not specified the flag

  • 87e183b: New routing system runtime handling and implementation.

    Improves support for advanced routing with Next.js applications on Pages, through leveraging the Vercel build output configuration. The Vercel build output specifies the relevant routing steps that are taken during the lifetime of a request, and this change implements a new system that handles these steps.

  • ea761b8: remove disable-chunks-dedup flag

  • 86df485: Support for the internationalization (i18n) option in next.config.js, and locale redirects.

  • 4d8a708: utilize Wrangler new capability of dynamically importing code to avoid the evaluation/run of javascript code
    when not necessary, reducing the app's startup time (which causes apps to often hit the script startup CPU time limit)

Patch Changes