Skip to content

Commit 9b90531

Browse files
committed
chore: upgrade to Next.js v16
1 parent b430db4 commit 9b90531

File tree

5 files changed

+684
-603
lines changed

5 files changed

+684
-603
lines changed

app/(admin)/layout.tsx

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,34 @@ import { AppSidebar } from "@/components/app-sidebar";
22
import { SidebarInset, SidebarProvider } from "@/components/ui/sidebar";
33
import AuthorizedApolloWrapper from "@/providers/use-apollo.rsc";
44
import ProtectedRoute from "@/providers/use-protected-route";
5-
import { unstable_ViewTransition as ViewTransition } from "react";
5+
import { Suspense, ViewTransition } from "react";
66

77
export default function AdminLayout({
88
children,
99
}: Readonly<{
1010
children: React.ReactNode;
1111
}>) {
1212
return (
13-
<ProtectedRoute>
14-
<AuthorizedApolloWrapper>
15-
<SidebarProvider
16-
style={{
17-
"--sidebar-width": "calc(var(--spacing) * 72)",
18-
"--header-height": "calc(var(--spacing) * 12)",
19-
} as React.CSSProperties}
20-
>
21-
<AppSidebar variant="inset" />
22-
<SidebarInset>
23-
<ViewTransition>
24-
<div suppressHydrationWarning>
25-
{children}
26-
</div>
27-
</ViewTransition>
28-
</SidebarInset>
29-
</SidebarProvider>
30-
</AuthorizedApolloWrapper>
31-
</ProtectedRoute>
13+
<Suspense>
14+
<ProtectedRoute>
15+
<AuthorizedApolloWrapper>
16+
<SidebarProvider
17+
style={{
18+
"--sidebar-width": "calc(var(--spacing) * 72)",
19+
"--header-height": "calc(var(--spacing) * 12)",
20+
} as React.CSSProperties}
21+
>
22+
<AppSidebar variant="inset" />
23+
<SidebarInset>
24+
<ViewTransition>
25+
<div suppressHydrationWarning>
26+
{children}
27+
</div>
28+
</ViewTransition>
29+
</SidebarInset>
30+
</SidebarProvider>
31+
</AuthorizedApolloWrapper>
32+
</ProtectedRoute>
33+
</Suspense>
3234
);
3335
}

next.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const nextConfig: NextConfig = {
99
swcPlugins: [
1010
["@swc-contrib/plugin-graphql-codegen-client-preset", { artifactDirectory: "./gql", gqlTagName: "graphql" }],
1111
],
12-
ppr: "incremental",
12+
cacheComponents: true,
1313
authInterrupts: true,
1414
},
1515
};

package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"type": "module",
66
"scripts": {
7-
"dev": "next dev --turbopack",
7+
"dev": "next dev --experimental-https",
88
"build": "next build",
99
"start": "next start",
1010
"lint": "eslint .",
@@ -17,7 +17,7 @@
1717
"@apollo/client": "4.0.7",
1818
"@apollo/client-integration-nextjs": "^0.13.2",
1919
"@bprogress/next": "^3.2.12",
20-
"@graphql-codegen/client-preset": "^5.0.3",
20+
"@graphql-codegen/client-preset": "^5.1.0",
2121
"@hookform/resolvers": "^5.2.2",
2222
"@radix-ui/react-alert-dialog": "^1.1.15",
2323
"@radix-ui/react-avatar": "^1.1.10",
@@ -37,18 +37,18 @@
3737
"class-variance-authority": "^0.7.1",
3838
"clsx": "^2.1.1",
3939
"graphql": "^16.11.0",
40-
"lucide-react": "^0.544.0",
41-
"next": "15.6.0-canary.45",
40+
"lucide-react": "^0.545.0",
41+
"next": "16.0.0-canary.2",
4242
"next-themes": "^0.4.6",
43-
"react": "19.3.0-canary-4fdf7cf2-20251003",
44-
"react-dom": "19.3.0-canary-4fdf7cf2-20251003",
45-
"react-hook-form": "^7.64.0",
43+
"react": "19.3.0-canary-ead92181-20251010",
44+
"react-dom": "19.3.0-canary-ead92181-20251010",
45+
"react-hook-form": "^7.65.0",
4646
"react-remark": "^2.1.0",
4747
"remark": "^15.0.1",
4848
"remark-html": "^16.0.1",
4949
"sonner": "^2.0.7",
5050
"tailwind-merge": "^3.3.1",
51-
"zod": "^4.1.11"
51+
"zod": "^4.1.12"
5252
},
5353
"devDependencies": {
5454
"@0no-co/graphqlsp": "^1.15.0",
@@ -58,10 +58,10 @@
5858
"@graphql-typed-document-node/core": "^3.2.0",
5959
"@parcel/watcher": "^2.5.1",
6060
"@tailwindcss/postcss": "^4.1.14",
61-
"@types/node": "^24.7.0",
62-
"@types/react": "^19.2.0",
63-
"@types/react-dom": "^19.2.0",
64-
"@typescript-eslint/parser": "^8.45.0",
61+
"@types/node": "^24.7.2",
62+
"@types/react": "^19.2.2",
63+
"@types/react-dom": "^19.2.1",
64+
"@typescript-eslint/parser": "^8.46.0",
6565
"dprint": "^0.50.2",
6666
"eslint": "^9.37.0",
6767
"eslint-config-next": "15.6.0-canary.45",

0 commit comments

Comments
 (0)