a tool for shared writing and social publishing
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

handle sub routes in custom domains

+4
+4
middleware.ts
··· 29 29 .eq("domain", hostname) 30 30 .single(); 31 31 if (routes) { 32 + let internalRoute = routes.custom_domain_routes.find((r) => { 33 + req.nextUrl.pathname.startsWith("/" + r.view_permission_token); 34 + }); 35 + if (internalRoute) return; 32 36 let route = routes.custom_domain_routes.find((r) => 33 37 req.nextUrl.pathname.startsWith(r.route), 34 38 );