docs: fix meta assets of user guide (#11639)
This commit is contained in:
1 parent
b0a16488e0
commit
d493347980
3 files changed
+13
No files matched your search
Binary file not shown.
|
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 101 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 101 KiB |
@@ -0,0 +1,13 @@
|
|||||||
|
import { retrieveMdxPages } from "build-scripts"
|
||||||
|
import type { MetadataRoute } from "next"
|
||||||
|
import path from "path"
|
||||||
|
import { config } from "../config"
|
||||||
|
import { basePathUrl } from "../utils/base-path-url"
|
||||||
|
|
||||||
|
export default function sitemap(): MetadataRoute.Sitemap {
|
||||||
|
return retrieveMdxPages({
|
||||||
|
basePath: path.resolve("app"),
|
||||||
|
}).map((filePath) => ({
|
||||||
|
url: `${config.baseUrl}${basePathUrl(filePath)}`,
|
||||||
|
}))
|
||||||
|
}
|
||||||
Reference in new issue
Block a user