コンテンツにスキップ
This is an unmaintained snapshot of the Astro v4 docs. View the latest docs.

The middleware didn't return a Response.

このコンテンツはまだ日本語訳がありません。

MiddlewareNoDataOrNextCalled: Make sure your middleware returns a Response object, either directly or by returning the Response from calling the next function.

Thrown when the middleware does not return any data or call the next function.

For example:

import {defineMiddleware} from "astro:middleware";
export const onRequest = defineMiddleware((context, _) => {
// doesn't return anything or call `next`
context.locals.someData = false;
});
貢献する

どんなことを?

GitHub Issueを作成

チームに素早く問題を報告できます。

コミュニティ