diff --git a/examples/pages-router/src/pages/api/dynamic/precedence/route.ts b/examples/pages-router/src/pages/api/dynamic/precedence/index.ts similarity index 100% rename from examples/pages-router/src/pages/api/dynamic/precedence/route.ts rename to examples/pages-router/src/pages/api/dynamic/precedence/index.ts diff --git a/packages/tests-e2e/tests/pagesRouter/api.test.ts b/packages/tests-e2e/tests/pagesRouter/api.test.ts index 62e607795..753b2eedb 100644 --- a/packages/tests-e2e/tests/pagesRouter/api.test.ts +++ b/packages/tests-e2e/tests/pagesRouter/api.test.ts @@ -37,10 +37,7 @@ test("should work with optional catch all api route", async ({ page }) => { expect(body).toEqual({ optional: "true" }); }); -// This should work but it doesn't. It seems that the predefined api route is not taking precedence. -// Its broken in `next start` aswell. -// Issue currently open in Next: https://github.com/vercel/next.js/issues/76765 -test.skip("predefined api route should take presedence", async ({ page }) => { +test("predefined api route should take presedence", async ({ page }) => { const result = await page.goto("/api/dynamic/precedence"); expect(result?.status()).toBe(200); const body = await result?.json();