@cloudflare/next-on-pages@1.3.1
Patch Changes
-
619beea: bundle assets produced by the Vercel build and make them accessible via fetch
Vercel/Next can allow access binary assets bundled with their edge functions in the following manner:
const font = fetch(new URL('../../assets/asset-x', import.meta.url)).then( (res) => res.arrayBuffer(), );
As you can see in this
@vercel/og
example:
https://vercel.com/docs/concepts/functions/edge-functions/og-image-generation/og-image-examples#using-a-custom-fontThis sort of access to bindings is necessary for the
@vercel/og
package to work and might be used in other packages
as well, so it is something that we need to support.
We do so by making sure that we properly bind the assets found in the Vercel build output into our worker
and that fetches to such assets (using blob urls) are correctly handled (this requires us to patch the globalfetch
function) -
76a8bb4: Fix multiple search params with the same key not being preserved