docs: added cloud documentation project (#12711)
This commit is contained in:
13
www/apps/cloud/app/sitemap.ts
Normal file
13
www/apps/cloud/app/sitemap.ts
Normal file
@@ -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