mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-26 06:31:49 +00:00
Fix React Router template imports (#2296)
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user