rsnext/packages/next/types
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
..
compiled.d.ts Remove webpack4 types (#39631) 2022-08-16 09:55:37 +00:00
global.d.ts Update cache handling for app (#43659) 2022-12-02 23:32:49 -08:00
index.d.ts Dynamic routes for toplevel robots and sitemap (#47091) 2023-03-13 18:04:31 -07:00
misc.d.ts Add Zod and router state validation (#46962) 2023-03-10 13:37:45 +00:00
webpack.d.ts Move core files to src folder and move JS files to TypeScript (#44405) 2023-01-03 10:05:50 +01:00