Skip to content

Commit 12c2745

Browse files
use env variable for public API key
1 parent a922889 commit 12c2745

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/page.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ import { CopilotKit } from "@copilotkit/react-core";
66
import "@copilotkit/react-textarea/styles.css";
77

88
export default function Home() {
9+
const COPILOT_CLOUD_PUBLIC_API_KEY = process.env.NEXT_PUBLIC_COPILOT_CLOUD_PUBLIC_API_KEY;
10+
911
return (
1012
<div className="h-screen">
11-
<CopilotKit publicApiKey="ck_pub_68042cff5088605d9c8ee8ead7b09c69">
13+
<CopilotKit publicApiKey={COPILOT_CLOUD_PUBLIC_API_KEY}>
1214
<EmailsProvider>
1315
<EmailThread />
1416
</EmailsProvider>

0 commit comments

Comments
 (0)