Skip to content

Commit 7208a12

Browse files
committed
Merge branch 'develop' into feature/wv
2 parents f0df7cc + 63eec49 commit 7208a12

83 files changed

Lines changed: 20175 additions & 26994 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/deploy-playground-and-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212

1313
jobs:
1414
deploy:
15-
runs-on: ubuntu-latest
15+
runs-on: ubuntu-24.04
1616

1717
steps:
1818
- name: Checkout code

.github/workflows/test-all.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
jobs:
1313
test:
1414
timeout-minutes: 60
15-
runs-on: ubuntu-20.04
15+
runs-on: ubuntu-24.04
1616
steps:
1717
- name: Checkout code
1818
uses: actions/checkout@v4
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
'use client';
2+
3+
import { sendEvent, TelemetryEventType } from '@corbado/shared-util';
4+
import { useEffect, useRef } from 'react';
5+
6+
export function TelemetryClient() {
7+
const hasSentTelemetry = useRef(false);
8+
9+
useEffect(() => {
10+
if (hasSentTelemetry.current) return;
11+
12+
void sendEvent({
13+
type: TelemetryEventType.EXAMPLE_APPLICATION_OPENED,
14+
payload: {
15+
exampleName: 'corbado/javascript/examples/nextjs',
16+
},
17+
sdkVersion: '3.1.1',
18+
sdkName: 'React SDK',
19+
identifier: process.env.NEXT_PUBLIC_CORBADO_PROJECT_ID!,
20+
});
21+
22+
hasSentTelemetry.current = true;
23+
}, []);
24+
25+
return null;
26+
}

examples/nextjs/app/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ import Image from 'next/image';
44
import Link from 'next/link';
55
import { Suspense } from 'react';
66
import RightIntroSection from './ui/right-intro-section';
7+
import { TelemetryClient } from './components/TelemetryClient';
78

89
export default function Page() {
910
return (
1011
<main className='flex min-h-screen flex-col p-6'>
12+
<TelemetryClient />
1113
<div className='flex h-20 shrink-0 items-end rounded-lg bg-blue-500 p-4 md:h-52'>
1214
<Image
1315
src='/corbado-logo.svg'

0 commit comments

Comments
 (0)