fix: organizations some teams throw 404
parent
b4d27a9326
commit
d299228243
|
@ -28,7 +28,10 @@ let subdomainRegExp = (exports.subdomainRegExp = getSubdomainRegExp(
|
||||||
exports.orgHostPath = `^(?<orgSlug>${subdomainRegExp})\\.(?!vercel\.app).*`;
|
exports.orgHostPath = `^(?<orgSlug>${subdomainRegExp})\\.(?!vercel\.app).*`;
|
||||||
|
|
||||||
let beforeRewriteExcludePages = pages.concat(otherNonExistingRoutePrefixes);
|
let beforeRewriteExcludePages = pages.concat(otherNonExistingRoutePrefixes);
|
||||||
exports.orgUserRoutePath = `/:user((?!${beforeRewriteExcludePages.join("|")}|_next|public)[a-zA-Z0-9\-_]+)`;
|
exports.orgUserRoutePath = `/:user((?!${beforeRewriteExcludePages
|
||||||
|
.map((page) => `\\b${page}\\b`)
|
||||||
|
.join("|")}|_next|public)[a-zA-Z0-9\-_]+)`;
|
||||||
|
|
||||||
exports.orgUserTypeRoutePath = `/:user((?!${beforeRewriteExcludePages.join(
|
exports.orgUserTypeRoutePath = `/:user((?!${beforeRewriteExcludePages.join(
|
||||||
"/|"
|
"/|"
|
||||||
)}|_next/|public/)[^/]+)/:type((?!avatar\.png)[^/]+)`;
|
)}|_next/|public/)[^/]+)/:type((?!avatar\.png)[^/]+)`;
|
||||||
|
|
Loading…
Reference in New Issue