Update and fix missing dependencies

This commit is contained in:
Darren Clarke 2023-06-14 06:33:06 +00:00 committed by GitHub
parent 8949b10671
commit 59ae833099
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 26880 additions and 20410 deletions

View file

@ -1,8 +1,7 @@
import { NextResponse } from 'next/server';
import type { NextRequest } from 'next/server';
import { withAuth, NextRequestWithAuth } from "next-auth/middleware";
const rewriteURL = (request: NextRequest, originBaseURL: string, destinationBaseURL: string, headers: any = {}) => {
const rewriteURL = (request: NextRequestWithAuth, originBaseURL: string, destinationBaseURL: string, headers: any = {}) => {
if (request.nextUrl.protocol.startsWith('ws')) {
return NextResponse.next();
}