@farming-labs/next 0.1.122 → 0.1.124

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/config.mjs +5 -0
  2. package/package.json +3 -3
package/dist/config.mjs CHANGED
@@ -159,6 +159,7 @@ const DEFAULT_AGENT_MD_WELL_KNOWN_ROUTE = "/.well-known/AGENT.md";
159
159
  const DEFAULT_ROBOTS_TXT_ROUTE = "/robots.txt";
160
160
  const DEFAULT_SITEMAP_XML_ROUTE = "/sitemap.xml";
161
161
  const DEFAULT_SITEMAP_MD_ROUTE = "/sitemap.md";
162
+ const DEFAULT_SITEMAP_MD_DOCS_ROUTE = "/docs/sitemap.md";
162
163
  const DEFAULT_SITEMAP_MD_WELL_KNOWN_ROUTE = "/.well-known/sitemap.md";
163
164
  const DEFAULT_SITEMAP_MANIFEST_PATH = ".farming-labs/sitemap-manifest.json";
164
165
  const MARKDOWN_ACCEPT_HEADER_VALUE = [
@@ -1160,6 +1161,10 @@ function buildSitemapRewrites(config) {
1160
1161
  source: joinPublicRoute(prefix, DEFAULT_SITEMAP_MD_ROUTE),
1161
1162
  destination: "/api/docs?format=sitemap-md"
1162
1163
  },
1164
+ ...prefix ? [] : [{
1165
+ source: DEFAULT_SITEMAP_MD_DOCS_ROUTE,
1166
+ destination: "/api/docs?format=sitemap-md"
1167
+ }],
1163
1168
  {
1164
1169
  source: joinPublicRoute(prefix, DEFAULT_SITEMAP_MD_WELL_KNOWN_ROUTE),
1165
1170
  destination: "/api/docs?format=sitemap-md"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farming-labs/next",
3
- "version": "0.1.122",
3
+ "version": "0.1.124",
4
4
  "description": "Next.js adapter for @farming-labs/docs — MDX config wrapper",
5
5
  "keywords": [
6
6
  "docs",
@@ -100,8 +100,8 @@
100
100
  "tsdown": "^0.20.3",
101
101
  "typescript": "^5.9.3",
102
102
  "vitest": "^3.2.4",
103
- "@farming-labs/docs": "0.1.122",
104
- "@farming-labs/theme": "0.1.122"
103
+ "@farming-labs/theme": "0.1.124",
104
+ "@farming-labs/docs": "0.1.124"
105
105
  },
106
106
  "peerDependencies": {
107
107
  "@farming-labs/docs": ">=0.0.1",