Open
Description
https://github.com/vercel/next.js/blob/dc1901a2c2184c66247eae7e1e5ea2b0cc9629aa/test/e2e/og-api/index.test.ts#L46-L52 tests if next/og
is working in middleware. It relies on bundling assets
and not just wasm
- to illustrate here's excerpt from prerender-manifest.json
generated for test fixture used in above test:
{
"middleware": {
"/": {
"files": [
"server/edge-runtime-webpack.js",
"server/middleware.js"
],
"name": "middleware",
"page": "/",
"matchers": [
{
"regexp": "^/.*$",
"originalSource": "/:path*"
}
],
"wasm": [
{
"name": "wasm_77d9faebf7af9e421806970ce10a58e9d83116d7",
"filePath": "server/edge-chunks/wasm_77d9faebf7af9e421806970ce10a58e9d83116d7.wasm"
},
{
"name": "wasm_ef4866ecae192fd87727067cf2c0c0cf9fb8b020",
"filePath": "server/edge-chunks/wasm_ef4866ecae192fd87727067cf2c0c0cf9fb8b020.wasm"
}
],
"assets": [
{
"name": "noto-sans-v27-latin-regular.5dda3fca77107598.ttf",
"filePath": "server/edge-chunks/asset_noto-sans-v27-latin-regular.5dda3fca77107598.ttf"
}
]
}
}
}
We are bundling wasm
part, but currently assets
is not handled and result in "blob fetch" error when next/og
attempt to load font to render the image
Data
The following is parsed automatically by the Next.js repo e2e test report generator.
test: test/e2e/og-api/index.test.ts
reason: middleware assets are not supported