dynamic routes in seperated file for middleware
Unanswered
Ant posted this in #help-forum
AntOP
Hello i have file called routes.ts where i store all my public,auth routes for middleware and i don't know how i can store dynamic route there, tried like this
and also tried with ** like pathname on images in next.config but still not working
export const publicRoutes = [
"/",
"/home",
"/auth/new-verification",
"/contact",
"/api/uploadthing",
"/explore",
"/explore/search",
"/explore/:locationId",
];
export const authRoutes = [
"/auth/login",
"/auth/register",
"/auth/error",
"/auth/reset-password",
"/auth/new-password",
];
export const apiAuthPrefix = "/api/auth";
export const DEFAULT_LOGIN_REDIRECT = "/settings";and also tried with ** like pathname on images in next.config but still not working