Skip to content

Commit 634d44e

Browse files
remove color tokens from app config
also remove `sandboxId` and `agentName` from default appConfig
1 parent 968c69c commit 634d44e

File tree

4 files changed

+0
-29
lines changed

4 files changed

+0
-29
lines changed

README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff 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
8787
export 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

app-config.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
11
import type { AppConfig } from './lib/types';
22

33
export 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
};

components/root-layout.tsx

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import { Public_Sans } from 'next/font/google';
22
import localFont from 'next/font/local';
3-
import { headers } from 'next/headers';
4-
import { getAppConfig, getOrigin } from '@/lib/env';
53
import { cn } from '@/lib/utils';
64
import '@/styles/globals.css';
75

@@ -47,20 +45,8 @@ interface RootLayoutProps {
4745
}
4846

4947
export 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
>

lib/types.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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

2320
export interface SandboxConfig {

0 commit comments

Comments
 (0)