Releases: cloudflare/next-on-pages
v0.10.1
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 theastring
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
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