Update nextjs.

This commit is contained in:
muzam1l
2023-01-11 21:08:17 +05:30
parent 0536e48cfe
commit a6ad39f6e8
7 changed files with 846 additions and 377 deletions

View File

@@ -1,10 +0,0 @@
import type { NextRequest, NextFetchEvent } from 'next/server'
import { NextResponse as Response } from 'next/server'
export default function middleware(req: NextRequest, ev: NextFetchEvent) {
if (req.nextUrl.pathname === '/') {
const url = req.nextUrl.clone()
url.pathname = '/develop'
return Response.redirect(url)
}
}