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

Can't load the middleware.

यह कंटेंट अभी तक आपकी भाषा में उपलब्ध नहीं है।

MiddlewareCantBeLoaded: The middleware threw an error while Astro was trying to loading it.

Thrown in development mode when middleware throws an error while attempting to loading it.

For example:

import {defineMiddleware} from "astro:middleware";
throw new Error("Error thrown while loading the middleware.")
export const onRequest = defineMiddleware(() => {
return "string"
});