rsnext/test/e2e/app-dir/metadata-dynamic-routes
Jiachi Liu 3db878629e
Fix dynamic sitemap detection (#60356)
### What

Fix bad detection of dynamic route of sitemap metadata route, the swc
AST check should process when the text are detected. But prevuious if
there's text with `generateSitemap` such as comment but not the actual
export it will fail.

### How
Add both checks on metadata loader side and detection helper side

* Only call `generateSitemaps` helper when the export existed
* Fix the helper detection logic (major part of this PR)

Fixes #59698
Closes #60344
Closes NEXT-2007
2024-01-08 14:11:00 +01:00
..
app Fix dynamic sitemap detection (#60356) 2024-01-08 14:11:00 +01:00
assets Add test for using custom font in metadata image routes (#54274) 2023-08-19 14:29:18 +00:00
index.test.ts Polish logging segments of page route (#57834) 2023-11-01 16:34:52 +00:00
next.config.js Add esm entry for next/server and alias @vercel/og (#51651) 2023-06-22 21:34:12 +00:00