📚 Documentação inicial do ALETHEIA

- MANUAL-PRODUTO.md: Manual do usuário final
- MANUAL-VENDAS.md: Estratégia comercial e vendas
- MANUAL-TECNICO.md: Infraestrutura e deploy
- README.md: Visão geral do projeto
This commit is contained in:
2026-02-10 15:08:15 -03:00
commit 20a26affaa
16617 changed files with 3202171 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
import { pathToRegexp } from "next/dist/compiled/path-to-regexp";
import { normalizeRouteRegex } from "./load-custom-routes";
import { getRedirectStatus, modifyRouteRegex } from "./redirect-status";
export function buildCustomRoute(type, route, restrictedRedirectPaths) {
const compiled = pathToRegexp(route.source, [], {
strict: true,
sensitive: false,
delimiter: "/"
});
let source = compiled.source;
if (!route.internal) {
source = modifyRouteRegex(source, type === "redirect" ? restrictedRedirectPaths : undefined);
}
const regex = normalizeRouteRegex(source);
if (type !== "redirect") {
return {
...route,
regex
};
}
return {
...route,
statusCode: getRedirectStatus(route),
permanent: undefined,
regex
};
}
//# sourceMappingURL=build-custom-route.js.map