Skip to content

Edge functions: Vercel preview CORS, deno typecheck in CI, functions README - #24

Merged
KrishP147 merged 3 commits into
mainfrom
krish/edge-fns-cors-deno-check
Sep 24, 2026
Merged

KrishP147 merged 3 commits into
mainfrom
krish/edge-fns-cors-deno-check

Conversation

@KrishP147

Copy link
Copy Markdown
Owner

Closes #10

  • _shared/cors.ts: nutrisync-frontend*.vercel.app preview origins allowed via an anchored https-only regex; still echoes exactly one origin, no credentials header.
  • CI: new supabase-functions-check job (setup-deno v2.x, deno check supabase/functions/*/index.ts) on push + PR, no secrets. Marking it required is a branch-protection setting.
  • supabase/functions/README.md: layout, secrets (GOOGLE_API_KEY, USDA_API_KEY), serve/deploy commands, link to docs/07. One bullet added to docs/07 CORS section.

This PR is the first ever run of deno check on these functions.

🤖 Generated with Claude Code

KrishP147 and others added 3 commits September 23, 2026 22:57
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings September 24, 2026 03:05

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@vercel

vercel Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
nutrisync-frontend Ready Ready Preview Sep 24, 2026 3:06am UTC

@codecov

codecov Bot commented Sep 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@KrishP147
KrishP147 merged commit 3788f20 into main Sep 24, 2026
10 checks passed

This branch was successfully deployed

1 active deployment
Preview — 5444d3c6 Deployed Sep 24, 2026 by vercel[bot]
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.

Edge functions: CORS allow-list for Vercel previews, secrets docs, deno typecheck in CI

2 participants