The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
remove ppr, add ClientOnly
Steven Teyd461d89cfc97
diff --git a/apps/web/app/app.dub.co/(dashboard)/layout.tsx b/apps/web/app/app.dub.co/(dashboard)/layout.tsxindex 78478669dd..b5361a442d 100644--- a/apps/web/app/app.dub.co/(dashboard)/layout.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/layout.tsx@@ -5,7 +5,7 @@ import { constructMetadata } from "@dub/utils";import { ReactNode } from "react";import Providers from "../../providers";-export const experimental_ppr = true;+export const dynamic = "force-static";export const metadata = constructMetadata();export default async function Layout({ children }: { children: ReactNode }) {diff --git a/apps/web/next.config.js b/apps/web/next.config.jsindex 1f53f4d8b8..3e1a4860ab 100644--- a/apps/web/next.config.js+++ b/apps/web/next.config.js@@ -14,7 +14,11 @@ module.exports = withAxiom({reactStrictMode: false,transpilePackages: ["shiki"],experimental: {- ppr: "incremental",+ serverComponentsExternalPackages: [+ "@react-email/components",+ "@react-email/render",+ "@react-email/tailwind",+ ],},webpack: (config, { webpack, isServer }) => {if (isServer) {diff --git a/apps/web/package.json b/apps/web/package.jsonindex 837a1eb550..2f699df886 100644--- a/apps/web/package.json+++ b/apps/web/package.json@@ -75,7 +75,7 @@"jszip": "^3.10.1","lucide-react": "^0.367.0","nanoid": "^5.0.1",- "next": "14.3.0-canary.58",+ "next": "14.3.0-canary.42","next-auth": "^4.24.4","next-axiom": "^1.3.0","next-plausible": "^3.12.0",diff --git a/apps/web/ui/layout/main-nav.tsx b/apps/web/ui/layout/main-nav.tsxindex 0b137163b5..132fa12ea1 100644--- a/apps/web/ui/layout/main-nav.tsx+++ b/apps/web/ui/layout/main-nav.tsx@@ -78,9 +78,7 @@ export function MainNav({)}/></div>- <div className="scrollbar-hide relative flex h-full w-full flex-col overflow-y-auto overflow-x-hidden">- <SidebarNav toolContent={toolContent} />- </div>+ <SidebarNav toolContent={toolContent} /></div></div><div className="bg-neutral-100 md:pt-1.5">diff --git a/apps/web/ui/layout/sidebar/sidebar-nav.tsx b/apps/web/ui/layout/sidebar/sidebar-nav.tsxindex 2163838c67..f612b7db6e 100644--- a/apps/web/ui/layout/sidebar/sidebar-nav.tsx+++ b/apps/web/ui/layout/sidebar/sidebar-nav.tsx@@ -1,5 +1,5 @@import useWorkspace from "@/lib/swr/use-workspace";-import { Wordmark } from "@dub/ui";+import { ClientOnly, Wordmark } from "@dub/ui";import { cn } from "@dub/utils";import { ChevronLeft } from "lucide-react";import Link from "next/link";@@ -33,7 +33,7 @@ export function SidebarNav({ toolContent }: { toolContent?: ReactNode }) {}, [slug, pathname]);return (- <>+ <ClientOnly className="scrollbar-hide relative flex h-full w-full flex-col overflow-y-auto overflow-x-hidden"><nav className="relative p-3 text-gray-500"><div className="relative flex items-start justify-between gap-1 pb-3">{AREAS.map((area) => (@@ -100,7 +100,7 @@ export function SidebarNav({ toolContent }: { toolContent?: ReactNode }) {<UserSurveyButton /><Usage /></div>- </>+ </ClientOnly>);}diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 9405cfd06d..ed09ed46d4 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -193,7 +193,7 @@ importers:version: 6.6.2geist:specifier: ^1.3.1- version: 1.3.1([email protected])+ version: 1.3.1([email protected])github-slugger:specifier: ^2.0.0version: 2.0.0@@ -222,20 +222,20 @@ importers:specifier: ^5.0.1version: 5.0.1next:- specifier: 14.3.0-canary.58- version: 14.3.0-canary.58(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected])+ specifier: 14.3.0-canary.42+ version: 14.3.0-canary.42(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected])next-auth:specifier: ^4.24.4next-axiom:specifier: ^1.3.0next-plausible:specifier: ^3.12.0next-safe-action:specifier: 7.1.4-experimental.1- version: 7.1.4-experimental.1([email protected])([email protected])([email protected])([email protected])+ version: 7.1.4-experimental.1([email protected])([email protected])([email protected])([email protected])node-html-parser:specifier: ^6.1.4version: 6.1.4@@ -5068,7 +5068,7 @@ packages:next-auth: ^4dependencies:'@prisma/client': 5.18.0([email protected])dev: false/@next/[email protected]:@@ -5079,8 +5079,8 @@ packages:resolution: {integrity: sha512-FxcPBKXwMuoW1zzG17xAcF7449Nmxc+btAkoNPW9qNuQuWCeG2+cBxl+QZ25KUdW7BS42WrrctmNKlez9NZSLA==}dev: true- /@next/[email protected]:- resolution: {integrity: sha512-RAIhNQoDgZivpCvd2d8aS5KZVHZE3GBVBAyjt9Ee5lS9mYZSRYLkM7Spwz2t+IOL4t6oHGYeAW5fYVQU4L0RGQ==}+ /@next/[email protected]:+ resolution: {integrity: sha512-1WqxEMzSd9nULVLMy0ctLsX9T934jQDblMyO5SujzXURG4jCfZBJud4LNamU748Iu/s1ScR7PsDyPmR1wZlKeQ==}dev: false/@next/[email protected]:@@ -5101,8 +5101,8 @@ packages:dev: trueoptional: true- /@next/[email protected]:- resolution: {integrity: sha512-+2E5pGQVZrjG1M8y5Vl3+KywjS8enhWVNGKUP0Tn4p2Z0xZ6nrI32r9VSTFzjWazNLWzbgeDZFovw7XvvOhNew==}+ /@next/[email protected]:+ resolution: {integrity: sha512-0FToZPLxC6QprBwHZMfEpVsvfWyD0owlh4/R3bYH8qJ/L+jFFwnrfE9TgQf+xQPQEps/9D5b4Z6yA70BKNaFiA==}engines: {node: '>= 10'}cpu: [arm64]os: [darwin]@@ -5128,8 +5128,8 @@ packages:dev: trueoptional: true- /@next/[email protected]:- resolution: {integrity: sha512-JNk7j1Xqg/GjfbzQW8JCtxgSDyeviprBDNjx+E0zDDapN9XwMqEt5yRyNzhhmF6gBqCy7zMg+WIwoMCmg3LWHg==}+ /@next/[email protected]:+ resolution: {integrity: sha512-4d2tPYFC6eodW+lRa46An+0AtU4GPQf+loZAmU05Pw3X6d34g5MFGE+r1ZSFWshHxYF+xAD4NDJA4UYAcfQZ1A==}engines: {node: '>= 10'}cpu: [x64]os: [darwin]@@ -5155,8 +5155,8 @@ packages:dev: trueoptional: true- /@next/[email protected]:- resolution: {integrity: sha512-OVVkRLE/lRsuQFK5QFmE8FDpo0o/2HkMJPf8/+UnyyGccTzyq2HZ4EBCzwS+BA5HzIOGor4q7zsjno/c7EST/A==}+ /@next/[email protected]:+ resolution: {integrity: sha512-K51T+kLEj6x6zsClgchq9K9vWo6OluMKLcnAcKlOedfrOd6T8AqQ1ysOKI2QQHlqpYPrQAmJYOqA5Vne8bXtHg==}engines: {node: '>= 10'}cpu: [arm64]os: [linux]@@ -5182,8 +5182,8 @@ packages:dev: trueoptional: true- /@next/[email protected]:- resolution: {integrity: sha512-GdV8MoQOwGxA+vKNk6IJuF+5/Uz5K7CWILKcSt6/XKfSmOxTopsQieiUFt7iZiBjoZq8sPCjolW/5kHKlG5GEw==}+ /@next/[email protected]:+ resolution: {integrity: sha512-MikRf0yTcPaUquI2sojzWYBqV4v56sGpSFYk992jC2YPu15Nad4rOEZANfFri/w2GLqlgZA+OMaBXPCXzaM1sA==}engines: {node: '>= 10'}cpu: [arm64]os: [linux]@@ -5209,8 +5209,8 @@ packages:dev: trueoptional: true- /@next/[email protected]:- resolution: {integrity: sha512-1mJfUVZYZm0zmA66ao5+drHzCQYQyqffJ3ggHrVobQJoXeWMn3Wv8bxfBGz5YDWjFHAWnpN/5UGkaRv7ibT4wQ==}+ /@next/[email protected]:+ resolution: {integrity: sha512-TjM0s4q5mijXVemZzKc/9sNUv3ObIHXyN5lOC0lkgtx420om+vKF6ts1gIXZEeKkEhbknn/v4xVjAcFYiyMWVw==}engines: {node: '>= 10'}cpu: [x64]os: [linux]@@ -5236,8 +5236,8 @@ packages:dev: trueoptional: true- /@next/[email protected]:- resolution: {integrity: sha512-bcIiIvoYyf7ufnDrYmiO7TZ2eLIFVrhP/uN6HqKKbdyr2LGmTUGfK+RiHIwtqK4Tkm1rDEF0wnKAK2HaZtRciQ==}+ /@next/[email protected]:+ resolution: {integrity: sha512-HmqCN1LoWgxWI/V22u1ZuqgcW1aa4bp/fiQ6fvN0Vj39XDoOXyARvcoUhVIS9ALcpzL5Sv/eQnIn34yqiwTTtQ==}engines: {node: '>= 10'}cpu: [x64]os: [linux]@@ -5263,8 +5263,8 @@ packages:dev: trueoptional: true- /@next/[email protected]:- resolution: {integrity: sha512-QS88pmKrz0bv8aQE/r/q1cMxpUVAm24OLpD0k490AZ/gdHWBgqhSEv2EjdnCkWO3u7f5jn7rKSPJ/3CXpXnX7w==}+ /@next/[email protected]:+ resolution: {integrity: sha512-eB1rYwK4neygqWyA7Hz5g1bXHMMC5fNictLRFzA3RdTENsD0qm5A3d7bET9k1VmMVl8Grstvn+OEebn6+LQOSA==}engines: {node: '>= 10'}cpu: [arm64]os: [win32]@@ -5290,8 +5290,8 @@ packages:dev: trueoptional: true- /@next/[email protected]:- resolution: {integrity: sha512-BSk4tVnxaG5STsM17OUW30ya4Bc1l3KUHXcZ/arbSvR13A5VLvcm/pd75KUiWokHUhdWjNBcMZzCHbuEtuVLaw==}+ /@next/[email protected]:+ resolution: {integrity: sha512-JMT/WXCV2KyY734IhIA0SyoeU1O0Indi9hMYT+PSn0RlxY59yRx+JbYmqgZUXnpl1eNy/cq6Ln+A8zmkxZRpEA==}engines: {node: '>= 10'}cpu: [ia32]os: [win32]@@ -5317,8 +5317,8 @@ packages:dev: trueoptional: true- /@next/[email protected]:- resolution: {integrity: sha512-ZmYCyZcsZNHFr7SBYdROKlqhiCnk6lcmayUFDt0/EGwlK80mkhjLWiTKVvAZQUge0IN/8UrnScwliNN+kqR/aA==}+ /@next/[email protected]:+ resolution: {integrity: sha512-vhZoakxIEZOqWYnBvnvNK7V8Qq5nThFYwjz9VmxAE9qBWlJBjQ7INBR/5TNl8l2U25XBYamAVa6Hi6Fe8LuhLQ==}engines: {node: '>= 10'}cpu: [x64]os: [win32]@@ -13730,12 +13730,12 @@ packages:- supports-colordev: falseresolution: {integrity: sha512-Q4gC1pBVPN+D579pBaz0TRRnGA4p9UK6elDY/xizXdFk/g4EKR5g0I+4p/Kj6gM0SajDBZ/0FvDV9ey9ud7BWw==}peerDependencies:next: '>=13.2.0'dependencies:- next: 14.3.0-canary.58(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected])+ next: 14.3.0-canary.42(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected])dev: false@@ -17268,7 +17268,7 @@ packages:resolution: {integrity: sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==}dev: falseresolution: {integrity: sha512-5DGffi+OpkbU62vPQIJ1z+hFnmow+ec5Qrn9m6eoglIO51m0DlrmLxBduZEwKAYDEg9k2joi1yelgmq1vqK3aQ==}peerDependencies:next: ^12.2.5 || ^13 || ^14@@ -17283,7 +17283,7 @@ packages:'@panva/hkdf': 1.1.1cookie: 0.5.0jose: 4.15.4- next: 14.3.0-canary.58(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected])+ next: 14.3.0-canary.42(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected])nodemailer: 6.9.3oauth: 0.9.15openid-client: 5.6.1@@ -17294,14 +17294,14 @@ packages:uuid: 8.3.2dev: falseresolution: {integrity: sha512-G6e85+LkV9VXIFqil47ozfQH6TORg93kRVkvjFB0IU3h0qpPGgzgfBB7uKU2qmhNgOF4Ub5o44MNYP/8GXHnOw==}engines: {node: '>=18'}peerDependencies:next: '>=13.4'react: '>=18.0.0'dependencies:- next: 14.3.0-canary.58(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected])+ next: 14.3.0-canary.42(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected])react: 18.2.0remeda: 1.61.0vitest: 1.5.0(@types/[email protected])@@ -17322,19 +17322,19 @@ packages:- terserdev: falseresolution: {integrity: sha512-SSkEqKQ6PgR8fx3sYfIAT69k2xuCUXO5ngkSS19CjxY97lAoZxsfZpYednxB4zo0mHYv87JzhPynrdBPlCBVHg==}peerDependencies:next: ^11.1.0 || ^12.0.0 || ^13.0.0 || ^14.0.0react: ^16.8.0 || ^17.0.0 || ^18.0.0react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0dependencies:- next: 14.3.0-canary.58(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected])+ next: 14.3.0-canary.42(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected])react: 18.2.0react-dom: 18.2.0([email protected])dev: falseresolution: {integrity: sha512-6BihKPIJ/Wu7qgEGUKAUJfy5NTPO2eV1BJ/7WWpgMarHzm+6/OUkllwwndAw85YLy+khVmzHYkSCS+n0Ei7qMg==}engines: {node: '>=18.17'}peerDependencies:@@ -17343,7 +17343,7 @@ packages:react-dom: '>= 18.2.0'zod: '>= 3.0.0'dependencies:- next: 14.3.0-canary.58(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected])+ next: 14.3.0-canary.42(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected])react: 18.2.0react-dom: 18.2.0([email protected])zod: 3.22.4@@ -17431,15 +17431,15 @@ packages:- babel-plugin-macrosdev: true- /[email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]):- resolution: {integrity: sha512-cuG0KhlxFWJmyvP/ZjTk6FOm4jj/3YP1Irvbb/TcFFW42Fr+59j8MJsjUKeikK/EuIim9tylXbqPBn+Ftlb99A==}+ /[email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]):+ resolution: {integrity: sha512-T2gUVG7V9D4HLPVKapAo5/pvfwm4O5UVjBIW/bwbd+ie2MO4zbs/SnONVbI2Fl7MY53xfHR2rWzx5uru3kTc6Q==}engines: {node: '>=18.17.0'}hasBin: truepeerDependencies:'@opentelemetry/api': ^1.1.0'@playwright/test': ^1.41.2- react: 19.0.0-beta-4508873393-20240430- react-dom: 19.0.0-beta-4508873393-20240430+ react: ^18.2.0+ react-dom: ^18.2.0sass: ^1.3.0peerDependenciesMeta:'@opentelemetry/api':@@ -17449,7 +17449,7 @@ packages:sass:optional: truedependencies:- '@next/env': 14.3.0-canary.58+ '@next/env': 14.3.0-canary.42'@opentelemetry/api': 1.8.0'@swc/helpers': 0.5.11busboy: 1.6.0@@ -17458,17 +17458,17 @@ packages:postcss: 8.4.31react: 18.2.0react-dom: 18.2.0([email protected])- styled-jsx: 5.1.3(@babel/[email protected])([email protected])+ styled-jsx: 5.1.1(@babel/[email protected])([email protected])optionalDependencies:- '@next/swc-darwin-arm64': 14.3.0-canary.58- '@next/swc-darwin-x64': 14.3.0-canary.58- '@next/swc-linux-arm64-gnu': 14.3.0-canary.58- '@next/swc-linux-arm64-musl': 14.3.0-canary.58- '@next/swc-linux-x64-gnu': 14.3.0-canary.58- '@next/swc-linux-x64-musl': 14.3.0-canary.58- '@next/swc-win32-arm64-msvc': 14.3.0-canary.58- '@next/swc-win32-ia32-msvc': 14.3.0-canary.58- '@next/swc-win32-x64-msvc': 14.3.0-canary.58+ '@next/swc-darwin-arm64': 14.3.0-canary.42+ '@next/swc-darwin-x64': 14.3.0-canary.42+ '@next/swc-linux-arm64-gnu': 14.3.0-canary.42+ '@next/swc-linux-arm64-musl': 14.3.0-canary.42+ '@next/swc-linux-x64-gnu': 14.3.0-canary.42+ '@next/swc-linux-x64-musl': 14.3.0-canary.42+ '@next/swc-win32-arm64-msvc': 14.3.0-canary.42+ '@next/swc-win32-ia32-msvc': 14.3.0-canary.42+ '@next/swc-win32-x64-msvc': 14.3.0-canary.42sharp: 0.33.5transitivePeerDependencies:- '@babel/core'@@ -20354,24 +20354,6 @@ packages:client-only: 0.0.1react: 18.2.0- resolution: {integrity: sha512-qLRShOWTE/Mf6Bvl72kFeKBl8N2Eq9WIFfoAuvbtP/6tqlnj1SCjv117n2MIjOPpa1jTorYqLJgsHKy5Y3ziww==}- engines: {node: '>= 12.0.0'}- peerDependencies:- '@babel/core': '*'- babel-plugin-macros: '*'- react: '>= 16.8.0 || 17.x.x || ^18.0.0-0 || ^19.0.0-0'- peerDependenciesMeta:- '@babel/core':- optional: true- babel-plugin-macros:- optional: true- dependencies:- '@babel/core': 7.24.5- client-only: 0.0.1- react: 18.2.0- dev: false-resolution: {integrity: sha512-70/LQEZ07TEcxiU2dz51FKaE6hCTWC6vr7FOk3Gr0U60C3shtAN+H+BFr9XlYe5xqf3RA8nrc+VIwzCfnxuXJw==}engines: {node: '>=8'}