Fix React Router template imports (#2296)

This commit is contained in:
Jiralite
2025-09-01 22:29:46 +08:00
committed by GitHub
parent 0ace799f44
commit be409671cd
3 changed files with 7 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'create-fumadocs-app': patch
---
Fixed imports for the React Router template.
@@ -1,6 +1,6 @@
import type { Route } from './+types/search';
import { createFromSource } from 'fumadocs-core/search/server';
import { source } from '@/source';
import { source } from '@/lib/source';
const server = createFromSource(source, {
// https://docs.orama.com/docs/orama-js/supported-languages
@@ -1,5 +1,5 @@
import { loader } from 'fumadocs-core/source';
import { create, docs } from '../source.generated';
import { create, docs } from '../../source.generated';
export const source = loader({
source: await create.sourceAsync(docs.doc, docs.meta),