Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

middleware assets are not supported #2697

Copy link
Copy link
Open
@pieh

Description

@pieh
Issue body actions

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Next.js e2e test failureErrors identified through the Next.js repo e2e testsErrors identified through the Next.js repo e2e tests

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.