fix: include app directory in rewrites generation logic + migrate /reschedule pages to App Router (#18261)
* chore: app router - /reschedule pages (#18150) * app router - /reschedule pages * add to config.matcher * generateMetdata is not needed * include app directory in rewrites generation logic * make it more readable * make code more elegant * fix * fix * fix * fix * test and refactor
This commit is contained in:
1 parent
c27b73aa9a
commit
355aaa7010
7 files changed
+71
-27
No files matched your search
@@ -0,0 +1,45 @@
|
||||
import { it, expect, describe } from "vitest";
|
||||
|
||||
import { pages } from "../../pagesAndRewritePaths.js";
|
||||
|
||||
describe("pagesAndRewritePaths", () => {
|
||||
describe("beforeFiles must exclude routes in pages/app router", () => {
|
||||
const BEFORE_REWRITE_EXCLUDE_PAGES = [
|
||||
"apps",
|
||||
"availability",
|
||||
"booking",
|
||||
"connect-and-join",
|
||||
"enterprise",
|
||||
"error",
|
||||
"getting-started",
|
||||
"insights",
|
||||
"maintenance",
|
||||
"more",
|
||||
"not-found",
|
||||
"reschedule",
|
||||
"settings",
|
||||
"teams",
|
||||
"upgrade",
|
||||
"video",
|
||||
"workflows",
|
||||
"403",
|
||||
"404",
|
||||
"500",
|
||||
"bookings",
|
||||
"event-types",
|
||||
"icons",
|
||||
"org",
|
||||
"payment",
|
||||
"routing-forms",
|
||||
"signup",
|
||||
"team",
|
||||
"d",
|
||||
];
|
||||
|
||||
it("should include all required routes", () => {
|
||||
BEFORE_REWRITE_EXCLUDE_PAGES.forEach((route) => {
|
||||
expect(pages).toContain(route);
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user