File tree Expand file tree Collapse file tree 4 files changed +0
-29
lines changed Expand file tree Collapse file tree 4 files changed +0
-29
lines changed Original file line number Diff line number Diff line change @@ -85,16 +85,10 @@ This starter is designed to be flexible so you can adapt it to your specific age
8585
8686``` ts
8787export const APP_CONFIG_DEFAULTS = {
88- sandboxId: undefined ,
89- agentName: undefined ,
90-
9188 supportsChatInput: true ,
9289 supportsVideoInput: true ,
9390 supportsScreenShare: true ,
9491 isPreConnectBufferEnabled: true ,
95-
96- accent: ' #002cf2' ,
97- accentDark: ' #1fd5f9' ,
9892};
9993```
10094
Original file line number Diff line number Diff line change 11import type { AppConfig } from './lib/types' ;
22
33export const APP_CONFIG_DEFAULTS : AppConfig = {
4- sandboxId : undefined ,
5- agentName : undefined ,
6-
74 supportsChatInput : true ,
85 supportsVideoInput : true ,
96 supportsScreenShare : true ,
107 isPreConnectBufferEnabled : true ,
11-
12- accent : '#002cf2' ,
13- accentDark : '#1fd5f9' ,
148} ;
Original file line number Diff line number Diff line change 11import { Public_Sans } from 'next/font/google' ;
22import localFont from 'next/font/local' ;
3- import { headers } from 'next/headers' ;
4- import { getAppConfig , getOrigin } from '@/lib/env' ;
53import { cn } from '@/lib/utils' ;
64import '@/styles/globals.css' ;
75
@@ -47,20 +45,8 @@ interface RootLayoutProps {
4745}
4846
4947export async function RootLayout ( { children, className } : RootLayoutProps ) {
50- const hdrs = await headers ( ) ;
51- const origin = getOrigin ( hdrs ) ;
52- const { accent, accentDark } = await getAppConfig ( origin ) ;
53-
54- const styles = [
55- accent ? `:root { --primary: ${ accent } ; }` : '' ,
56- accentDark ? `.dark { --primary: ${ accentDark } ; }` : '' ,
57- ]
58- . filter ( Boolean )
59- . join ( '\n' ) ;
60-
6148 return (
6249 < html lang = "en" suppressHydrationWarning className = { cn ( 'scroll-smooth' , className ) } >
63- < head > { styles && < style > { styles } </ style > } </ head >
6450 < body
6551 className = { cn ( publicSans . variable , commitMono . variable , 'overflow-x-hidden antialiased' ) }
6652 >
Original file line number Diff line number Diff line change @@ -15,9 +15,6 @@ export interface AppConfig {
1515 supportsVideoInput : boolean ;
1616 supportsScreenShare : boolean ;
1717 isPreConnectBufferEnabled : boolean ;
18-
19- accent ?: string ;
20- accentDark ?: string ;
2118}
2219
2320export interface SandboxConfig {
You can’t perform that action at this time.
0 commit comments