chore: enable session replay

This commit is contained in:
Carl-Gerhard Lindesvärd
2026-02-26 19:49:38 +01:00
parent 22fb4acf12
commit baedf4343b
3 changed files with 24 additions and 7 deletions

View File

@@ -20,7 +20,7 @@
"@opennextjs/cloudflare": "^1.16.5",
"@openpanel/common": "workspace:*",
"@openpanel/geo": "workspace:*",
"@openpanel/nextjs": "^1.1.1",
"@openpanel/nextjs": "^1.2.0",
"@openpanel/payments": "workspace:^",
"@openpanel/sdk-info": "workspace:^",
"@openstatus/react": "0.0.3",

View File

@@ -42,6 +42,9 @@ export default function Layout({ children }: { children: React.ReactNode }) {
{process.env.NEXT_PUBLIC_OP_CLIENT_ID && (
<OpenPanelComponent
clientId={process.env.NEXT_PUBLIC_OP_CLIENT_ID}
sessionReplay={{
enabled: true,
}}
trackAttributes
trackOutgoingLinks
trackScreenViews

26
pnpm-lock.yaml generated
View File

@@ -285,8 +285,8 @@ importers:
specifier: workspace:*
version: link:../../packages/geo
'@openpanel/nextjs':
specifier: ^1.1.1
version: 1.1.1(next@16.0.7(@opentelemetry/api@1.9.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
specifier: ^1.2.0
version: 1.2.0(next@16.0.7(@opentelemetry/api@1.9.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
'@openpanel/payments':
specifier: workspace:^
version: link:../../packages/payments
@@ -5866,8 +5866,8 @@ packages:
next: ~15.0.8 || ~15.1.12 || ~15.2.9 || ~15.3.9 || ~15.4.11 || ~15.5.10 || ~16.0.11 || ^16.1.5
wrangler: ^4.59.2
'@openpanel/nextjs@1.1.1':
resolution: {integrity: sha512-azJSB+SxL4ybj9MA1mDZkLBJ67jbZoDQB52SjaPS0lSBLVEQkcJVMO5x+sZFd9UgVVwWIvkTECdLLF+9eyXf8w==}
'@openpanel/nextjs@1.2.0':
resolution: {integrity: sha512-APHnOj34aeOM0JZMqSPWPV1oMDiY9I21MBEm+ne3G00H/fNkE2RyG4F0yxoxripn1EqiZK65a07HZH8qfLgXdQ==}
peerDependencies:
next: ^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0
react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
@@ -5876,9 +5876,15 @@ packages:
'@openpanel/sdk@1.0.2':
resolution: {integrity: sha512-WvVWCBcJvJhM5MYKO5Hxjo4G/E0tnK5XK2UC+hKDHtoF+iKvtUWa5bz18pFAPQprq0u/Ev2YqirPsrMQJy5g2g==}
'@openpanel/sdk@1.1.0':
resolution: {integrity: sha512-KxFEbY+s0wP5I+su1+j1AOVn6Uvw0QMO+iXbEcmW2MkFAaIuIIPYkHFELxiLPuePLI54gYfbmTr2ZMlz9GJtZw==}
'@openpanel/web@1.0.5':
resolution: {integrity: sha512-n/A9fKiHWcDTH2N6N8MM214ET7aoNJjgpLux0GRW+CD0KDEwI8UosQvvz3UOGHZ3jWqMMsUNdU2B7eYk2W87mg==}
'@openpanel/web@1.1.0':
resolution: {integrity: sha512-5AUG/uBZZaeMKFNsp5l21D3Lj0ddPLK4NS/XIol7Q0jp2n6Za2wO5UlJ9MUatMoSLyLHc4a1BK9t+gbBlN7cMg==}
'@openstatus/react@0.0.3':
resolution: {integrity: sha512-uDiegz7e3H67pG8lTT+op+6w5keTT7XpcENrREaqlWl5j53TYyO8nheOG1PeNw2/Qgd5KaGeRJJFn1crhTUSYw==}
peerDependencies:
@@ -24997,19 +25003,27 @@ snapshots:
- encoding
- supports-color
'@openpanel/nextjs@1.1.1(next@16.0.7(@opentelemetry/api@1.9.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)':
'@openpanel/nextjs@1.2.0(next@16.0.7(@opentelemetry/api@1.9.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)':
dependencies:
'@openpanel/web': 1.0.5
'@openpanel/web': 1.1.0
next: 16.0.7(@opentelemetry/api@1.9.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
react: 19.2.3
react-dom: 19.2.3(react@19.2.3)
'@openpanel/sdk@1.0.2': {}
'@openpanel/sdk@1.1.0': {}
'@openpanel/web@1.0.5':
dependencies:
'@openpanel/sdk': 1.0.2
'@openpanel/web@1.1.0':
dependencies:
'@openpanel/sdk': 1.1.0
'@rrweb/types': 2.0.0-alpha.20
rrweb: 2.0.0-alpha.20
'@openstatus/react@0.0.3(react@19.2.3)':
dependencies:
react: 19.2.3