rsnext/test/e2e/app-dir/metadata
Jiachi Liu bfd6c3ea2e
Dynamic routes for toplevel robots and sitemap (#47091)
Support top-level `robots.[ext]` and `sitemap.[ext]` with dynamic api
routes

* Use isAppRoute to determine api routes and metadata routes as metadata
routes are normalized as `<metadata>/route`
* Normalize path to auto append extension to pathname for sitemap.js and
robots.js
* Add typings `SitemapFile` and `RobotsFile`
* move the normalize logic together, reuse the `absolutePathToPage`.
Changes less when touching both dev-server/hot-reloader and next-server,
use the same utils to handle paths

Closes NEXT-262

---------
2023-03-13 18:04:31 -07:00
..
app Add /route subpath to metadata static routes (#47030) 2023-03-11 19:22:01 +00:00
metadata.test.ts Add /route subpath to metadata static routes (#47030) 2023-03-11 19:22:01 +00:00
next.config.js Revert "Revert "Revert "Revert "Initial support for metadata (#44729)"" (#45113)"" (#45196) 2023-01-24 13:21:59 +00:00
tsconfig.json Dynamic routes for toplevel robots and sitemap (#47091) 2023-03-13 18:04:31 -07:00