CLI to build and develop Next.js apps for Cloudflare Pages
MIT License
Bot releases are visible (Hide)
Published by github-actions[bot] 9 months ago
0b1af18: add assertions for making sure that the required setupDevBindings
options are provided
bb18e8a: fix: ensure Durable Object stub proxies fetch Durable Objects and not their containing Worker
Previously, calling DurableObjectStub#fetch()
would dispatch a fetch
event to the Worker containing the target Durable Object, not the Durable Object itself. This change ensures the fetch
event is dispatched directly to the Durable Object.
3dd1f20: indent setupDevBindings
warnings
519c6cc: add databaseId
variant for D1s to the setupDevBindings
D1 binding type
D1 databases can only be referenced by their ID and not name, the current implementation
wrongly accepts the database name and uses it as the database id, in order to amend this
without introducing a breaking change we add a variant of the D1 binding type that accepts
a databaseId
field instead of the databaseName
for the binding and we present a warning
to users if the databaseName
is used instead.
When a better more stable/clear API will be decided for D1 bindings we can revisit this API.
05b6256: remove the invalid stringification of var bindings in next-dev
bb18e8a: chore: bump to [email protected]
Published by github-actions[bot] 9 months ago
Published by github-actions[bot] 10 months ago
next-dev
Published by github-actions[bot] 10 months ago
Published by github-actions[bot] 10 months ago
next-dev
's setupDevBindings
API and remove the module's __experimental__
prefixPublished by github-actions[bot] 10 months ago
a4efc7b: ignore invalid _error
functions in the App router
In the App router, error boundaries are implemented as client components (see: https://nextjs.org/docs/app/api-reference/file-conventions/error),
meaning that they should not produce server side logic.
The Vercel build process can however generate _error.func
lambdas (as they are useful in the
Vercel network I'd assume), through experimentation we've seen that those do not seem to be
necessary when building the application with next-on-pages so they should be safe to ignore.
The changes here make such invalid _error.func
lambdas (if present) ignored (as they would otherwise
cause the next-on-pages build process to fail)
352bf4b: Make route matching check handle better trailing slashes
Currently having trailingSlash
set to true
in the next.config.js
file
results in some routes not being correctly handled, this fix addresses such
issue
Published by github-actions[bot] 10 months ago
ed9a4ac: remove the no-longer-necessary no-app-not-found-runtime
rule in a backward compatible manner
72426c2: update no-unsupported-configs
with new configs options
in the no-unsupported-configs
rule handle the following new options:
Published by github-actions[bot] 11 months ago
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 https://github.com/cloudflare/next-on-pages/pull/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
Published by github-actions[bot] 11 months ago
Published by github-actions[bot] 11 months ago
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.
Published by github-actions[bot] 11 months ago
Published by github-actions[bot] 11 months ago
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).
x-vercel-sc-host
request header for older versions of Next.js for the suspense cache.Published by github-actions[bot] 11 months ago
/__index.prefetch.rsc
rewrites that were being rewritten to /__index
(and 404ing) due to to rsc suffix stripping that we do.Published by github-actions[bot] 11 months ago
Published by github-actions[bot] 11 months ago
vercel/next.js#58265
so that rendering in Next.js >= 14.0.2 works.next.config.js
basePath
root infinite redirect due to Cloudflare Pages handling of /{path}/index
.index.rsc
routes not generating a non-index override./_not-found
invalid function hack to work with next.config.js
basePath
.next.config.js
basePath
option.Published by github-actions[bot] 11 months ago
Published by github-actions[bot] 12 months ago
Published by github-actions[bot] 12 months ago
Published by github-actions[bot] about 1 year ago
Published by github-actions[bot] about 1 year ago
nodejs_compat
flag.29d3041: improve routing by following more closely Vercel's routes matching logic
69efaa5: Reinstate the use of the package-manager-manager package introduced in #474 and temporarily removed in #475,
this fixes the bug that was caused by the package by bumping the package itself (where the bug has been fixed)
and adding appropriate catches when the package methods can throw (in case other unexpected issues arise in the
future)
ab83858: Changes to the x-vercel-ip headers to bring their structure in line with deployments to Vercel.
6600d2a: fix wasms not always getting imported when necessary
Details:
when dealing with wasms that have more than 1 consumer, when we collect
the wasm imports to prepend for a specific edge funcion we're always
re-setting the array of wasm imports instead of appending them, this
causes edge functions to always only consider the last wasm
import, the changes here fix such behavior