Update to Next 15 (and other dependencies)

This commit is contained in:
Andy Chan (12beesinatrenchcoat) 2025-01-08 18:11:59 -05:00
parent 259fa9546d
commit ff0b026688
3 changed files with 7013 additions and 5939 deletions

2722
compass/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"dev": "next dev --turbopack",
"build": "next build",
"start": "next start",
"lint": "next lint",
@ -16,26 +16,26 @@
"@tanstack/match-sorter-utils": "^8.15.1",
"@tanstack/react-table": "^8.15.0",
"bufferutil": "^4.0.8",
"next": "14.2.18",
"react": "18.3.1",
"react-dom": "18.3.1",
"next": "15.1.4",
"react": "19.0.0",
"react-dom": "19.0.0",
"utf-8-validate": "^6.0.3",
"ws": "^8.16.0"
},
"devDependencies": {
"@types/node": "^20",
"@types/react": "18.3.12",
"@types/react-dom": "18.3.1",
"@types/react": "19.0.4",
"@types/react-dom": "19.0.2",
"autoprefixer": "^10",
"eslint": "^8",
"eslint-config-next": "14.2.18",
"eslint-config-next": "15.1.4",
"lint-staged": "^15.2.2",
"postcss": "^8",
"tailwindcss": "^3",
"typescript": "^5"
},
"overrides": {
"@types/react": "18.3.12",
"@types/react-dom": "18.3.1"
"@types/react": "19.0.4",
"@types/react-dom": "19.0.2"
}
}

View File

@ -1,8 +1,8 @@
import { createServerClient, type CookieOptions } from "@supabase/ssr";
import { cookies } from "next/headers";
import { cookies, type UnsafeUnwrappedCookies } from "next/headers";
export function createClient() {
const cookieStore = cookies();
const cookieStore = (cookies() as unknown as UnsafeUnwrappedCookies);
return createServerClient(
process.env.NEXT_PUBLIC_SUPABASE_URL!,