This commit is contained in:
2025-11-15 15:39:31 +01:00
parent d03ed2b4d5
commit a18ae4f3df
3 changed files with 719 additions and 450 deletions

View File

@@ -31,7 +31,7 @@
"drizzle-orm": "^0.44.3",
"lucide-react": "^0.553.0",
"nanoid": "^5.1.5",
"next": "15.5.6",
"next": "16.0.3",
"next-plausible": "^3.12.4",
"pg": "^8.16.3",
"pg-native": "^3.5.2",
@@ -44,17 +44,17 @@
},
"devDependencies": {
"@eslint/js": "9.39.1",
"@next/eslint-plugin-next": "15.5.6",
"@next/eslint-plugin-next": "16.0.3",
"@tailwindcss/postcss": "4.1.17",
"@types/node": "24.10.1",
"@types/pg": "8.15.6",
"@types/react": "19.2.3",
"@types/react": "19.2.5",
"@types/react-dom": "19.2.3",
"@typescript-eslint/eslint-plugin": "8.46.4",
"@typescript-eslint/parser": "8.46.4",
"drizzle-kit": "0.31.6",
"eslint": "9.39.1",
"eslint-config-next": "15.5.6",
"eslint-config-next": "16.0.3",
"postcss": "8.5.6",
"prettier": "3.6.2",
"prettier-plugin-tailwindcss": "0.7.1",
@@ -63,5 +63,11 @@
"typescript": "5.9.3",
"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

File diff suppressed because it is too large Load Diff

View File

@@ -1,7 +1,7 @@
import { NextResponse } 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 isAuthPage = request.nextUrl.pathname === '/welcome';
const isDashboard = request.nextUrl.pathname === '/dashboard';