Files
medusa-store/www/apps/resources/app/sitemap.ts
Shahed Nasser 76f9da5ef4 docs: Caching Module (#13701)
* standard docs for caching module + deprecated cache module

* added guides for creating + using, and overall changes from cache to caching

* fix details related to redis provider

* fix build errors

* fix build error

* fixes

* add guides to sidebar

* add sidebar util

* document query + index

* moved cache tag conventions

* fix build errors

* added migration guide

* added memcached guide

* fixes

* general fixes and updates

* updated reference

* document medusa cache

* small fix

* fixes

* remove cloud cache

* revert edit dates changes

* revert edit dates

* small update
2025-10-21 10:34:27 +03:00

65 lines
1.8 KiB
TypeScript

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 {
const items = retrieveMdxPages({
basePath: path.resolve("app"),
}).map((filePath) => ({
url: `${config.baseUrl}${basePathUrl(filePath)}`,
}))
// add some references
items.push(
{
url: `${config.baseUrl}${basePathUrl("/references/file-provider-module")}`,
},
{
url: `${config.baseUrl}${basePathUrl("/references/file-service")}`,
},
{
url: `${config.baseUrl}${basePathUrl("/references/locking-module-provider")}`,
},
{
url: `${config.baseUrl}${basePathUrl("/references/locking-service")}`,
},
{
url: `${config.baseUrl}${basePathUrl("/references/notification-provider-module")}`,
},
{
url: `${config.baseUrl}${basePathUrl("/references/notification-service")}`,
},
{
url: `${config.baseUrl}${basePathUrl("/references/event-service")}`,
},
{
url: `${config.baseUrl}${basePathUrl("/references/cache-service")}`,
},
{
url: `${config.baseUrl}${basePathUrl("/references/caching-module-provider")}`,
},
{
url: `${config.baseUrl}${basePathUrl("/references/caching-service")}`,
},
{
url: `${config.baseUrl}${basePathUrl("/references/file-service")}`,
},
{
url: `${config.baseUrl}${basePathUrl("/references/auth/provider")}`,
},
{
url: `${config.baseUrl}${basePathUrl("/references/fulfillment/provider")}`,
},
{
url: `${config.baseUrl}${basePathUrl("/references/tax/provider")}`,
},
{
url: `${config.baseUrl}${basePathUrl("/references/payment/provider")}`,
}
)
return items
}