Next Auth Middleware Id route
Answered
lasse posted this in #help-forum
lasseOP
How do i make the /[id] work?
export { default } from "next-auth/middleware";
export const config = {
matcher: [
"/dashboard",
"/dashboard/developers",
"/dashboard/developers/[id]",
],
};
Answered by European sprat
6 Replies
European sprat
regex
lasseOP
can you give me an example
Answer
European sprat
actually, you don't even need regex based on what you want to do there
see the linked docs
lasseOP
thank you!