1
mirror of https://github.com/jakejarvis/hoot.git synced 2025-10-18 20:14:25 -04:00

v16 breaking changes

This commit is contained in:
2025-10-11 02:08:21 -04:00
parent 7c392ffb5f
commit 876bbe24d4
6 changed files with 750 additions and 747 deletions

View File

@@ -8,7 +8,7 @@ import { toRegistrableDomain } from "@/lib/domain-server";
import { getQueryClient } from "@/trpc/query-client";
import { trpc } from "@/trpc/server";
export const experimental_ppr = true;
// export const experimental_ppr = true;
export async function generateMetadata({
params,

View File

@@ -5,16 +5,12 @@ const nextConfig: NextConfig = {
typescript: {
ignoreBuildErrors: true,
},
eslint: {
ignoreDuringBuilds: true,
},
serverExternalPackages: ["@sparticuz/chromium", "puppeteer-core"],
reactCompiler: true,
images: {
unoptimized: true,
},
experimental: {
ppr: "incremental",
staleTimes: {
dynamic: 0, // disable client-side router cache for dynamic pages
},
@@ -80,6 +76,7 @@ const nextConfig: NextConfig = {
skipTrailingSlashRedirect: true,
};
// @ts-expect-error Next.js 16 types are not compatible yet
export default withPostHogConfig(nextConfig, {
personalApiKey: process.env.POSTHOG_API_KEY as string,
envId: process.env.POSTHOG_ENV_ID as string,

View File

@@ -12,8 +12,8 @@
},
"type": "module",
"scripts": {
"dev": "next dev --turbo",
"build": "next build",
"dev": "next dev",
"build": "next build --webpack",
"start": "next start",
"lint": "biome check",
"format": "biome format --write",
@@ -53,8 +53,8 @@
"puppeteer-core": "24.22.3",
"radix-ui": "^1.4.3",
"rdapper": "^0.5.0",
"react": "19.1.1",
"react-dom": "19.1.1",
"react": "19.2.0",
"react-dom": "19.2.0",
"react-map-gl": "^8.1.0",
"server-only": "0.0.1",
"sharp": "^0.34.4",
@@ -74,12 +74,12 @@
"@testing-library/react": "16.3.0",
"@testing-library/user-event": "14.6.1",
"@types/node": "24.7.1",
"@types/react": "19.1.16",
"@types/react-dom": "19.1.9",
"@types/react": "19.2.2",
"@types/react-dom": "19.2.1",
"@vitejs/plugin-react": "^5.0.4",
"@vitest/coverage-v8": "^3.2.4",
"@vitest/ui": "^3.2.4",
"babel-plugin-react-compiler": "19.1.0-rc.3",
"babel-plugin-react-compiler": "1.0.0",
"jsdom": "^27.0.0",
"puppeteer": "24.22.3",
"tailwindcss": "^4.1.14",

1466
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -7,7 +7,7 @@ import { toRegistrableDomain } from "@/lib/domain-server";
// Then captures everything up to the next slash as the authority.
const HTTP_PREFIX_CAPTURE_AUTHORITY = /^https?:[:/]+([^/]+)/i;
export function middleware(request: NextRequest) {
export function proxy(request: NextRequest) {
const path = request.nextUrl.pathname;
// Fast path: only act on non-root paths

View File

@@ -24,6 +24,12 @@
"@/*": ["./*"]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts",
".next/dev/types/**/*.ts"
],
"exclude": ["node_modules"]
}