@farming-labs/next 0.0.29 → 0.0.30

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 -1
  2. package/package.json +1 -1
package/dist/config.mjs CHANGED
@@ -66,9 +66,13 @@ export default function Layout({ children }: { children: React.ReactNode }) {
66
66
  `;
67
67
  const DOCS_API_ROUTE_TEMPLATE = `\
68
68
  ${GENERATED_BANNER}
69
+ import docsConfig from "@/docs.config";
69
70
  import { createDocsAPI } from "@farming-labs/theme/api";
70
71
 
71
- export const { GET, POST } = createDocsAPI();
72
+ export const { GET, POST } = createDocsAPI({
73
+ entry: docsConfig.entry,
74
+ i18n: docsConfig.i18n,
75
+ });
72
76
 
73
77
  export const revalidate = false;
74
78
  `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farming-labs/next",
3
- "version": "0.0.29",
3
+ "version": "0.0.30",
4
4
  "description": "Next.js adapter for @farming-labs/docs — MDX config wrapper",
5
5
  "keywords": [
6
6
  "docs",