コンテンツにスキップ

The middleware returned something that is not a Response object.

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

MiddlewareNotAResponse: Any data returned from middleware must be a valid Response object.

Thrown in development mode when middleware returns something that is not a Response object.

For example:

import {defineMiddleware} from "astro:middleware";
export const onRequest = defineMiddleware(() => {
return "string"
});
Contribute

どんなことを?

GitHub Issueを作成

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

Community