Closed z4nr34l closed 1 month ago
Description: Should generate middleware handler and matcher for exporting in config, where matcher will contain minimal matcher required.
Example:
const {middleware, matcher} = createMiddleware(middlewares, globalMiddlewares); const config = { matcher }; export { middleware, config }
It's not currently possible as next.js compiler doesn't allow dynamic matchers config.
Description: Should generate middleware handler and matcher for exporting in config, where matcher will contain minimal matcher required.
Example: