Skip to content

Releases: cloudflare/next-on-pages

v0.10.1

29 Apr 23:18
d7e62c7
Compare
Choose a tag to compare

Patch Changes

  • a680db6: improve the error message shown when the Vercel build fails to make clearer that the issue is not next-on-pages related

  • b07e3bc: Fix static route handling in the app directory and copy prerendered routes to the build output static directory.

    If an app directory project builds pages without specifying a runtime and has no server-side functionality, it defaults to generating static pages. These pages are in the form of prerendered routes, which are stored in the build output directory with prerender configs, fallback files, and functions. The functions it creates are not necessary and will be invalid nodejs functions as no runtime was specified, and the fallback files can instead be used as static assets for the pages.

  • bddbe04: remove astring dependency

    remove the astring dependency and by doing so basically just create and edit
    javascript code via string manipulations.

    this should speed up the experimental minification (since we don't generate js code
    from ASTs anymore) and avoid potential bugs in the astring library (like #151)

    note that this is not the cleanest solution and that we should look into implementing
    more robust and stable javascript code handling via AST visiting and manipulations
    (but currently that has proven quite problematic since modern javascript libraries that
    allow such code modding have turned out to be very slow, significantly impacting DX)

  • 9f5b83c: fix require-call typo preventing nodeBufferPlugin from properly working

v0.10.0

24 Apr 18:07
60e375f
Compare
Choose a tag to compare

Minor Changes

  • 2a159ed: add --info, -i CLI flag to print relevant details about the system and environment

Patch Changes

  • dc74ffe: fix: properly align invalid functions in error message

  • e3b92c3: Ignore '.wrangler' directory in watch mode

  • cf43f44: move the invalidFunctions check before the no-functions one

    currently if a build contains only invalid functions we'd be presenting a log
    saying that no function was found and simply return the static assets as if
    everything is correct, this is because we check for invalid functions only
    after checking if there are any (valid) ones, this change moves the invalid
    functions check so that is performed first, making sure that the described case
    successfully errors

  • 758f588: improve AST checking

    improve the way we check for webpack chunks (for the experimental minification) by
    improving the AST types used and also make the AST checking more robust

v0.8.0

12 Apr 18:42
119b55e
Compare
Choose a tag to compare

Minor Changes

  • 3387ac9: New routing system build time processing + integration with worker script.

v0.7.0

06 Apr 18:47
9834066
Compare
Choose a tag to compare

Minor Changes

  • 2d72906: Added support to utilize the package manager used in the project for local development
  • f58f76f: add prerelease and beta details to cli package version

v0.6.0

03 Apr 22:08
04da2c9
Compare
Choose a tag to compare

Minor Changes

  • 70b2e80: show the CLI version and also add the --version flag
  • 8b4f6d5: allow setting of NODE_ENV

Patch Changes

  • dcbbb9a: Parses cli arguments with the zodcli package
  • e0c53fe: fix experimental minification always on
  • 057baa0: Remove private/telemetry files from the build output.

v0.5.0

20 Mar 21:17
cc91567
Compare
Choose a tag to compare

Minor Changes

  • 5e575bf: feat: Add support for current 13.X versions of Next.js

Patch Changes

  • e2c4350: Add support for dynamic route params
  • c6c8818: Handle route handler function entries.

v0.4.2

16 Mar 22:03
2b97f9d
Compare
Choose a tag to compare

Patch Changes

  • a937040: fixed npx not working on windows
  • bcceaf0: Fix Windows file paths not matching entries in the middleware manifest.
  • da15971: Add support for Next.js basepath

v0.4.1

15 Mar 21:01
ba6b36c
Compare
Choose a tag to compare

Patch Changes

  • 7bb0c55: Fix fetch requests.
  • 72bd20c: add support for middleware in src dir
  • b4b4ed0: Fix Webpack minification and toggle esbuild minification.
  • 8a14ee3: adjust request so that it contains geo headers

v0.4.0

14 Mar 20:35
8ff78c7
Compare
Choose a tag to compare

Minor Changes

  • 6b8cda7: Avoid invoking worker for static files

Patch Changes

  • 6337b9a: remove redundant vercel install

v0.3.0

09 Feb 12:19
aa5202e
Compare
Choose a tag to compare

Minor Changes

  • 9ef93ff: Environment variables and bindings are now available on process.env from within your SSR'd pages/API handlers!