You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now with nextra 4, we have many methods like getPageMap, generateStaticParamsFor, and importPage, and it does make sense now to have a method that returns a sitemap.
We can implement this in a way that users only need to create an app/sitemap.ts file with content similar to this:
export{getSiteMapasdefault}from'nextra/page-map';// sitemap.(js|ts) expects an default export that returns `Promise<import('next').MetadataRoute.Sitemap>`
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Re-visit #419
Now with nextra 4, we have many methods like
getPageMap
,generateStaticParamsFor
, andimportPage
, and it does make sense now to have a method that returns a sitemap.Describe the solution you'd like
Next.js App Router has built-in sitemap support: https://nextjs.org/docs/app/api-reference/file-conventions/metadata/sitemap.
We can implement this in a way that users only need to create an
app/sitemap.ts
file with content similar to this:The text was updated successfully, but these errors were encountered: