跳到內容

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"
});
貢獻

你有哪些想法?

社群