@aravindc26/velu 0.12.10 → 0.12.12
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.
package/package.json
CHANGED
package/src/cli.ts
CHANGED
|
@@ -578,7 +578,7 @@ async function previewServer(port: number) {
|
|
|
578
578
|
...previewServerEnv(),
|
|
579
579
|
// Align source.config.ts and content-generator on the same content dir
|
|
580
580
|
PREVIEW_CONTENT_DIR: process.env.PREVIEW_CONTENT_DIR || "./content",
|
|
581
|
-
WATCHPACK_POLLING: process.env.WATCHPACK_POLLING || "
|
|
581
|
+
WATCHPACK_POLLING: process.env.WATCHPACK_POLLING || "false",
|
|
582
582
|
},
|
|
583
583
|
});
|
|
584
584
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Shared docs layout rendering logic.
|
|
3
3
|
* Used by both (docs)/[...slug]/layout.tsx (production) and _preview/ routes.
|
|
4
4
|
*/
|
|
5
|
-
import { isValidElement, type ReactNode } from 'react';
|
|
5
|
+
import React, { isValidElement, type ReactNode } from 'react';
|
|
6
6
|
import { DocsLayout } from 'fumadocs-ui/layouts/notebook';
|
|
7
7
|
import type { LinkItemType, BaseLayoutProps } from 'fumadocs-ui/layouts/shared';
|
|
8
8
|
import { SidebarLinks } from '@/components/sidebar-links';
|
|
@@ -477,7 +477,7 @@ export interface DocsLayoutConfig {
|
|
|
477
477
|
urlPrefix?: string;
|
|
478
478
|
}
|
|
479
479
|
|
|
480
|
-
export function renderDocsLayout(config: DocsLayoutConfig, children: ReactNode): JSX.Element {
|
|
480
|
+
export function renderDocsLayout(config: DocsLayoutConfig, children: ReactNode): React.JSX.Element {
|
|
481
481
|
const {
|
|
482
482
|
slug: slugInput,
|
|
483
483
|
tree: localePageTree,
|
|
@@ -110,7 +110,7 @@ interface PageMapping {
|
|
|
110
110
|
|
|
111
111
|
interface MetaFile {
|
|
112
112
|
dir: string;
|
|
113
|
-
data: { pages: string[]; title?: string; description?: string };
|
|
113
|
+
data: { pages: string[]; title?: string; description?: string; [key: string]: unknown };
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
interface BuildArtifacts {
|
|
@@ -415,7 +415,7 @@ function buildArtifacts(config: VeluConfig, docsDir?: string): BuildArtifacts {
|
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
417
|
|
|
418
|
-
const groupMetaData:
|
|
418
|
+
const groupMetaData: MetaFile['data'] = {
|
|
419
419
|
title: group.group,
|
|
420
420
|
pages: groupMetaPages,
|
|
421
421
|
defaultOpen: group.expanded !== false,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
|
|
11
11
|
const compiledRedirects = compileRedirectRules(normalizeRedirectRules(redirectRules));
|
|
12
12
|
|
|
13
|
-
export function
|
|
13
|
+
export function proxy(request: NextRequest) {
|
|
14
14
|
const { pathname } = request.nextUrl;
|
|
15
15
|
|
|
16
16
|
if (pathname.startsWith('/rss-file')) {
|