rsnext/packages
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
..
create-next-app v14.0.5-canary.43 2024-01-07 23:22:24 +00:00
eslint-config-next v14.0.5-canary.43 2024-01-07 23:22:24 +00:00
eslint-plugin-next v14.0.5-canary.43 2024-01-07 23:22:24 +00:00
font v14.0.5-canary.43 2024-01-07 23:22:24 +00:00
next Fix dynamic sitemap detection (#60356) 2024-01-08 14:11:00 +01:00
next-bundle-analyzer v14.0.5-canary.43 2024-01-07 23:22:24 +00:00
next-codemod v14.0.5-canary.43 2024-01-07 23:22:24 +00:00
next-env v14.0.5-canary.43 2024-01-07 23:22:24 +00:00
next-mdx v14.0.5-canary.43 2024-01-07 23:22:24 +00:00
next-plugin-storybook v14.0.5-canary.43 2024-01-07 23:22:24 +00:00
next-polyfill-module v14.0.5-canary.43 2024-01-07 23:22:24 +00:00
next-polyfill-nomodule v14.0.5-canary.43 2024-01-07 23:22:24 +00:00
next-swc v14.0.5-canary.43 2024-01-07 23:22:24 +00:00
react-dev-overlay v14.0.5-canary.43 2024-01-07 23:22:24 +00:00
react-refresh-utils v14.0.5-canary.43 2024-01-07 23:22:24 +00:00
third-parties v14.0.5-canary.43 2024-01-07 23:22:24 +00:00