تخطَّ إلى المحتوى

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"
});
ساهم

بماذا تفكّر؟

المجتمع
京ICP备15031610号-99