import proxy, { ProxyOptions } from './proxy.js'; import 'next/dist/compiled/@edge-runtime/cookies'; import 'next/server'; type MiddlewareOptions = ProxyOptions; /** * The middleware handles locale negotiation and adds alternate links of the page to the response headers. * * @example * import nextGlobeGenMiddleware from "next-globe-gen/middleware"; * export function middleware(request) { * const response = nextGlobeGenMiddleware(request); * // other custom logic that possibly modify the response * return response; * } * // Ignore next internals and static assets * export const config = { * matcher: ["/((?!_next|.*\\.).*)"], * }; */ declare const middleware: typeof proxy; /** * The middleware handles locale negotiation and adds alternate links of the page to the response headers. * * @example * export { middleware } from "next-globe-gen/middleware"; * // Ignore next internals and static assets * export const config = { * matcher: ["/((?!_next|.*\\.).*)"], * }; */ declare const middlewareExport: typeof proxy; export { type MiddlewareOptions, middleware as default, middlewareExport as middleware };