Update NextJS (#584)

* Update nextjs

* Add eslint config
This commit is contained in:
Eduard Gert
2026-02-02 17:33:09 +01:00
committed by GitHub
parent 858d7e7c9d
commit 766b03cc40
4 changed files with 30 additions and 16 deletions

View File

@@ -1,6 +1,6 @@
import { NextRequest, NextResponse } from 'next/server';
import { NextResponse } from 'next/server';
export function middleware(req) {
export function proxy(req) {
if (req.nextUrl.href.includes('/docs-static/_next/'))
return NextResponse.rewrite(
req.nextUrl.href.replace('/docs-static/_next/', '/_next/'),