Web deployment

From elophanto/EloPhanto · View interactive version

Web deployment is an AI agent skill from the GitHub repository elophanto/EloPhanto. Deploy websites to the internet and create databases. Supports Vercel

How to use this skill

Skill file

Web Deployment

Description

Deploy websites to the internet and create databases. Supports Vercel

(static/fast APIs), Railway (long-running operations), and Supabase (database).

Triggers

Instructions

Provider Decision Framework

Pick the right hosting provider based on what the project does:

| Project Type | Provider | Why |

|---|---|---|

| Static site / marketing page | Vercel | Free, fast CDN |

| Next.js with simple APIs (< 10s) | Vercel + Supabase | Native Next.js support |

| App with LLM API calls | Railway + Supabase | Vercel times out at 10s |

| App with streaming / WebSockets | Railway + Supabase | No timeout limits |

| App with cron jobs / queues | Railway + Supabase | Persistent processes |

| Pure API backend (no frontend) | Railway + Supabase | Server process |

| When in doubt | Railway | No timeout limits |

Critical: Vercel has a 10-second serverless function timeout on free tier

(60s on Pro). Any API route that calls OpenAI/Anthropic, does heavy processing,

or streams data will fail on Vercel. Always use Railway for those projects.

The deploy_website tool with provider: "auto" detects this automatically by

scanning API routes and package.json dependencies.

Deployment Workflow

  1. Scaffold the project (Next.js, etc.) and get it building locally
  2. Create database with create_database if the project needs persistence —

just pass a project name. The tool returns url, anon_key, service_role_key,

and db_url automatically. Never ask the user for these keys.

  1. Wire env vars — pass the credentials from the create_database result

to deploy_website via env_vars:

```

env_vars: {

"NEXT_PUBLIC_SUPABASE_URL": <url from create_database>,

"NEXT_PUBLIC_SUPABASE_ANON_KEY": <anon_key from create_database>,

"SUPABASE_SERVICE_ROLE_KEY": <service_role_key from create_database>,

"DATABASE_URL": <db_url from create_database>

}

```

  1. Build locally — always run npm run build before deploying to catch errors
  2. Deploy with deploy_website
  3. Verify — check the returned URL in the browser

Important: The only token the user sets up is the Supabase access token

in the vault (vault_set key=supabase_access_token value=...). All per-project

keys are auto-generated by create_database. Do not ask the user for anon keys,

service role keys, or database URLs.

Provider-Specific Notes

Vercel:

Railway:

Supabase:

Anti-Patterns

The auto-detect catches most cases but double-check manually.

to inject them into the platform's environment.

deploy minutes. Build locally first, fix errors, then deploy.

gives you database + auth + storage + realtime. Use tables, not projects,

to separate concerns.

failure is the app trying to connect to Supabase without the URL/key env vars.

Verify

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.