vercel-hello-world

Solid

Create a minimal working Vercel deployment with a serverless API route. Use when starting a new Vercel project, testing your setup, or learning basic Vercel deployment and API route patterns. Trigger with phrases like "vercel hello world", "vercel example", "vercel quick start", "simple vercel project", "first vercel deploy".

AI & Automation 2,266 stars 315 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Vercel Hello World ## Overview Deploy a minimal project to Vercel with a static page and a serverless API route. Confirms your CLI auth, project structure, and deployment pipeline work end to end. ## Prerequisites - Completed `vercel-install-auth` setup - Vercel CLI installed and authenticated - Node.js 18+ ## Instructions ### Step 1: Create Project Structure ```bash mkdir my-vercel-app && cd my-vercel-app npm init -y ``` Create the static landing page: ```html <!-- public/index.html --> <!DOCTYPE html> <html> <head><title>Hello Vercel</title></head> <body> <h1>Hello from Vercel</h1> <p id="result">Loading...</p> <script> fetch('/api/hello') .then(r => r.json()) .then(d => document.getElementById('result').textContent = d.message); </script> </body> </html> ``` ### Step 2: Create Serverless API Route ```typescript // api/hello.ts import type { VercelRequest, VercelResponse } from '@vercel/node'; export default function handler(req: VercelRequest, res: VercelResponse) { res.status(200).json({ message: 'Hello from Vercel Serverless Function!', timestamp: new Date().toISOString(), region: process.env.VERCEL_REGION || 'local', }); } ``` Install the types: ```bash npm install --save-dev @vercel/node typescript ``` ### Step 3: Add vercel.json Configuration ```json { "rewrites": [ { "source": "/api/(.*)", "destination": "/api/$1" } ], "headers": [ { "source": "/api/(.*)", "headers": [ { "key": "Cac...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category