rsnext/test/e2e/app-dir/metadata-dynamic-routes/app
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
..
(group) Move ImageResponse to next/og (#56662) 2023-10-19 14:26:48 +00:00
client-ref-dependency Fix react packages are not bundled for metadata routes (#55579) 2023-09-19 15:45:59 +02:00
font Move ImageResponse to next/og (#56662) 2023-10-19 14:26:48 +00:00
gsp Static generate dynamic sitemaps (#49114) 2023-05-03 12:11:57 +02:00
metadata-base/unset Move ImageResponse to next/og (#56662) 2023-10-19 14:26:48 +00:00
route-config Respect the original exported route segment config for sitemap (#56007) 2023-09-26 17:04:58 +00:00
apple-icon.tsx Move ImageResponse to next/og (#56662) 2023-10-19 14:26:48 +00:00
favicon.tsx Move ImageResponse to next/og (#56662) 2023-10-19 14:26:48 +00:00
icon.tsx Move ImageResponse to next/og (#56662) 2023-10-19 14:26:48 +00:00
layout.tsx Prefer to use deployment url for metadata routes on production (#48556) 2023-04-19 10:26:08 +00:00
manifest.ts Update MetadataRoute to namespace (#47674) 2023-03-30 15:27:44 -07:00
opengraph-image.tsx Fix dynamic sitemap detection (#60356) 2024-01-08 14:11:00 +01:00
page.tsx Provide default metadataBase for local and vercel deployment (#47568) 2023-03-30 16:27:24 -07:00
robots.ts Update MetadataRoute to namespace (#47674) 2023-03-30 15:27:44 -07:00
sitemap.ts Fix dynamic sitemap detection (#60356) 2024-01-08 14:11:00 +01:00
twitter-image.tsx Upgrade og dependencies (#59541) 2023-12-21 14:50:57 +01:00
twitter-image2.tsx Upgrade og dependencies (#59541) 2023-12-21 14:50:57 +01:00