इसे छोड़कर कंटेंट पर जाएं

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

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

समुदाय
京ICP备15031610号-99