Skip to content

Move Anthropic API calls server-side to stop key exposure - #9

Open
vivfeng wants to merge 1 commit into
mainfrom
seo-optimization
Open

Move Anthropic API calls server-side to stop key exposure#9
vivfeng wants to merge 1 commit into
mainfrom
seo-optimization

Conversation

@vivfeng

@vivfeng vivfeng commented Jun 1, 2026

Copy link
Copy Markdown
Owner

The API key was shipped to the browser via VITE_ANTHROPIC_API_KEY, which Vite inlines into the public bundle. Route all Claude requests through a new /api/anthropic serverless function that holds the key in ANTHROPIC_API_KEY server-side instead.

The API key was shipped to the browser via VITE_ANTHROPIC_API_KEY,
which Vite inlines into the public bundle. Route all Claude requests
through a new /api/anthropic serverless function that holds the key
in ANTHROPIC_API_KEY server-side instead.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@vivfeng vivfeng self-assigned this Jun 1, 2026
@vercel

vercel Bot commented Jun 1, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ski Ready Ready Preview, Comment Jun 1, 2026 7:16am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant