Skip to content

Commit 85c513b

Browse files
committed
Revert "Upgrade to Next.js v16"
This reverts commit 20707ec.
1 parent 3abff9a commit 85c513b

4 files changed

Lines changed: 5802 additions & 3492 deletions

File tree

jayantkageri

Lines changed: 0 additions & 1 deletion
This file was deleted.

proxy.ts renamed to middleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ async function verify(ip: string): Promise<boolean> {
3939
return false;
4040
}
4141

42-
export async function proxy(req: NextRequest) {
42+
export async function middleware(req: NextRequest) {
4343
const ping = isConnected().both;
4444
const locked = req.nextUrl.pathname === "/locked";
4545
const logout = req.nextUrl.pathname === "/auth/logout";

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
"nanoid": "^5.1.5",
2929
"next": "16.0.2-canary.23",
3030
"proper-lockfile": "^4.1.2",
31-
"react": "19.2.0",
32-
"react-dom": "19.2.0",
31+
"react": "19.1.0",
32+
"react-dom": "19.1.0",
3333
"react-hot-toast": "^2.5.2",
3434
"react-use": "^17.6.0",
3535
"redis": "^5.6.1",
@@ -43,8 +43,8 @@
4343
"@types/libsodium-wrappers": "^0.7.14",
4444
"@types/node": "^20.19.9",
4545
"@types/proper-lockfile": "^4.1.4",
46-
"@types/react": "19.2.2",
47-
"@types/react-dom": "19.2.2",
46+
"@types/react": "19.1.8",
47+
"@types/react-dom": "19.1.6",
4848
"eslint": "^9.31.0",
4949
"eslint-config-next": "16.0.0",
5050
"eslint-plugin-react-hooks": "^5.2.0",
@@ -54,8 +54,8 @@
5454
"packageManager": "pnpm@10.22.0+sha512.bf049efe995b28f527fd2b41ae0474ce29186f7edcb3bf545087bd61fbbebb2bf75362d1307fda09c2d288e1e499787ac12d4fcb617a974718a6051f2eee741c",
5555
"pnpm": {
5656
"overrides": {
57-
"@types/react": "19.2.2",
58-
"@types/react-dom": "19.2.2"
57+
"@types/react": "19.1.8",
58+
"@types/react-dom": "19.1.6"
5959
}
6060
}
61-
}
61+
}

0 commit comments

Comments
 (0)