@objectdocs/site 0.2.3 → 0.2.4
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/CHANGELOG.md +6 -0
- package/app/page.tsx +1 -1
- package/{proxy.ts → middleware.ts} +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/app/page.tsx
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import { redirect } from 'next/navigation';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* Root page - redirects are handled by
|
|
12
|
+
* Root page - redirects are handled by middleware.ts
|
|
13
13
|
* This page should never actually render as the middleware intercepts and redirects
|
|
14
14
|
* But Next.js requires a page component for the route to be recognized
|
|
15
15
|
*/
|
|
@@ -13,7 +13,7 @@ import { NextResponse, NextRequest, NextFetchEvent } from 'next/server';
|
|
|
13
13
|
// Create fumadocs middleware
|
|
14
14
|
const fumadocsMiddleware = createI18nMiddleware(i18n);
|
|
15
15
|
|
|
16
|
-
export default function
|
|
16
|
+
export default function middleware(request: NextRequest, event: NextFetchEvent) {
|
|
17
17
|
const path = request.nextUrl.pathname;
|
|
18
18
|
|
|
19
19
|
// Handle root path separately with custom language detection
|