You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Here we try to apply as much request metadata as possible
226
+
// We apply every metadata from `resolve-routes` https://github.com/vercel/next.js/blob/canary/packages/next/src/server/lib/router-utils/resolve-routes.ts
227
+
// and `router-server` https://github.com/vercel/next.js/blob/canary/packages/next/src/server/lib/router-server.ts
// If the request is for an ISR route, will be false on every server function. Only used in external middleware
128
128
isISR: boolean;
129
-
// The initial rawPath of the request before applying rewrites, if used with an external middleware will be defined in x-opennext-initial-path header
130
-
initialPath: string;
129
+
// The initial URL of the request before applying rewrites, if used with an external middleware will be defined in x-opennext-initial-url header
130
+
initialURL: string;
131
+
132
+
// The locale of the request, if used with an external middleware will be defined in x-opennext-locale header
133
+
locale?: string;
131
134
132
135
// The resolved route after applying rewrites, if used with an external middleware will be defined in x-opennext-resolved-routes header as a json encoded array
0 commit comments