Skip to content

Conversation

@bhumanai
Copy link
Contributor

@bhumanai bhumanai commented Aug 4, 2025

Summary

  • Introduces a new API endpoint /api/hello-uncle-frank.js that responds with a greeting message from Uncle Frank
  • Enables CORS to allow cross-origin requests with appropriate headers
  • Configures the endpoint runtime and max duration in vercel.json

Changes

API Endpoint

  • Created hello-uncle-frank.js API handler
    • Supports only GET requests, returns 405 for others
    • Handles OPTIONS requests for CORS preflight
    • Responds with JSON message: { message: "Hello from Uncle Frank" }
    • Sets CORS headers to allow credentials, all origins, and common HTTP methods and headers

Configuration

  • Updated vercel.json to add runtime and maxDuration settings for the new API endpoint

Test plan

  • Send GET request to /api/hello-uncle-frank and verify response message
  • Send OPTIONS request and verify 200 status with CORS headers
  • Send non-GET request (e.g., POST) and verify 405 error response
  • Confirm CORS headers are present in all responses

🌿 Generated by Terry


ℹ️ Tag @terragon-labs to ask questions and address PR feedback

📎 Task: https://www.terragonlabs.com/task/bcdf1ed3-0702-4ace-85c6-a0459ca26502

- Introduce new API route at api/hello-uncle-frank.js
- Supports GET method and responds with a greeting message
- Implements CORS headers to allow cross-origin requests
- Updates vercel.json to configure runtime and maxDuration for the new API

Co-authored-by: terragon-labs[bot] <terragon-labs[bot]@users.noreply.github.com>
@vercel
Copy link

vercel bot commented Aug 4, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
unclefrank-bootstrap ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 4, 2025 5:46pm

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.

2 participants