Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app-config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import type { AppConfig } from './lib/types';

export const APP_CONFIG_DEFAULTS: AppConfig = {
sandboxId: undefined,
agentName: undefined,
supportsChatInput: true,
supportsVideoInput: true,
supportsScreenShare: true,
Expand Down
5 changes: 3 additions & 2 deletions lib/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ export const getAppConfig = cache(
if (entry === null) continue;
if (
key in config &&
typeof config[key as keyof AppConfig] === entry.type &&
typeof config[key as keyof AppConfig] === typeof entry.value
(config[key as keyof AppConfig] === undefined ||
typeof config[key as keyof AppConfig] === entry.type) &&
typeof entry.value === entry.type
) {
// @ts-expect-error I'm not sure quite how to appease TypeScript, but we've thoroughly checked types above
config[key as keyof AppConfig] = entry.value as AppConfig[keyof AppConfig];
Expand Down
7 changes: 7 additions & 0 deletions next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ import type { NextConfig } from 'next';
const nextConfig: NextConfig = {
/* config options here */
devIndicators: false,
async headers() {
const iframeHeaders = [
{ key: 'X-Frame-Options', value: 'ALLOWALL' },
{ key: 'Content-Security-Policy', value: 'frame-ancestors *' },
];
return [{ source: '/embed', headers: iframeHeaders }];
},
};

export default nextConfig;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"livekit-client": "^2.13.3",
"livekit-server-sdk": "^2.13.0",
"motion": "^12.16.0",
"next": "15.4.7",
"next": "15.5.14",
"next-themes": "^0.4.6",
"react": "^19.0.0",
"react-dom": "^19.0.0",
Expand Down
82 changes: 41 additions & 41 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading