इसे छोड़कर कंटेंट पर जाएं
This is an unmaintained snapshot of the Astro v4 docs. View the latest docs.

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"
});
योगदान करें

आपके दिमाग में क्या है?

समुदाय