next 16
This commit is contained in:
16
package.json
16
package.json
@@ -31,7 +31,7 @@
|
|||||||
"drizzle-orm": "^0.44.3",
|
"drizzle-orm": "^0.44.3",
|
||||||
"lucide-react": "^0.553.0",
|
"lucide-react": "^0.553.0",
|
||||||
"nanoid": "^5.1.5",
|
"nanoid": "^5.1.5",
|
||||||
"next": "15.5.6",
|
"next": "16.0.3",
|
||||||
"next-plausible": "^3.12.4",
|
"next-plausible": "^3.12.4",
|
||||||
"pg": "^8.16.3",
|
"pg": "^8.16.3",
|
||||||
"pg-native": "^3.5.2",
|
"pg-native": "^3.5.2",
|
||||||
@@ -44,17 +44,17 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@eslint/js": "9.39.1",
|
"@eslint/js": "9.39.1",
|
||||||
"@next/eslint-plugin-next": "15.5.6",
|
"@next/eslint-plugin-next": "16.0.3",
|
||||||
"@tailwindcss/postcss": "4.1.17",
|
"@tailwindcss/postcss": "4.1.17",
|
||||||
"@types/node": "24.10.1",
|
"@types/node": "24.10.1",
|
||||||
"@types/pg": "8.15.6",
|
"@types/pg": "8.15.6",
|
||||||
"@types/react": "19.2.3",
|
"@types/react": "19.2.5",
|
||||||
"@types/react-dom": "19.2.3",
|
"@types/react-dom": "19.2.3",
|
||||||
"@typescript-eslint/eslint-plugin": "8.46.4",
|
"@typescript-eslint/eslint-plugin": "8.46.4",
|
||||||
"@typescript-eslint/parser": "8.46.4",
|
"@typescript-eslint/parser": "8.46.4",
|
||||||
"drizzle-kit": "0.31.6",
|
"drizzle-kit": "0.31.6",
|
||||||
"eslint": "9.39.1",
|
"eslint": "9.39.1",
|
||||||
"eslint-config-next": "15.5.6",
|
"eslint-config-next": "16.0.3",
|
||||||
"postcss": "8.5.6",
|
"postcss": "8.5.6",
|
||||||
"prettier": "3.6.2",
|
"prettier": "3.6.2",
|
||||||
"prettier-plugin-tailwindcss": "0.7.1",
|
"prettier-plugin-tailwindcss": "0.7.1",
|
||||||
@@ -63,5 +63,11 @@
|
|||||||
"typescript": "5.9.3",
|
"typescript": "5.9.3",
|
||||||
"typescript-eslint": "8.46.4"
|
"typescript-eslint": "8.46.4"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@10.22.0"
|
"packageManager": "pnpm@10.22.0",
|
||||||
|
"pnpm": {
|
||||||
|
"overrides": {
|
||||||
|
"@types/react": "19.2.5",
|
||||||
|
"@types/react-dom": "19.2.3"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
1151
pnpm-lock.yaml
generated
1151
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,7 @@
|
|||||||
import { NextResponse } from 'next/server';
|
import { NextResponse } from 'next/server';
|
||||||
import type { NextRequest } from 'next/server';
|
import type { NextRequest } from 'next/server';
|
||||||
|
|
||||||
export function middleware(request: NextRequest) {
|
export function proxy(request: NextRequest) {
|
||||||
const token = request.cookies.get('habit-tracker-token');
|
const token = request.cookies.get('habit-tracker-token');
|
||||||
const isAuthPage = request.nextUrl.pathname === '/welcome';
|
const isAuthPage = request.nextUrl.pathname === '/welcome';
|
||||||
const isDashboard = request.nextUrl.pathname === '/dashboard';
|
const isDashboard = request.nextUrl.pathname === '/dashboard';
|
||||||
Reference in New Issue
Block a user