eas-hosting

Deploy Expo web apps and API routes to EAS Hosting on Cloudflare Workers.

Updated Sep 8, 2026
One-click install
npx skills add https://github.com/bmiit145/leadBee --skill eas-hosting-bmiit145
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: eas-hosting
Source: https://github.com/bmiit145/leadBee/tree/main/mobile/.agents/skills/eas-hosting
Command: npx skills add https://github.com/bmiit145/leadBee --skill eas-hosting-bmiit145

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Deploying an Expo web app and its server-side API routes requires managing exports, environment secrets, custom domains, and edge-runtime constraints, which is error-prone without a clear workflow. ## Core Features & Use Cases - Web and API Deployment: Export the web bundle with npx expo export -p web and ship it with eas deploy for production or PR preview URLs. - API Route Authoring: Create +api.ts handlers in the app directory supporting GET, POST, PUT, DELETE, dynamic routes, query parameters, headers, and CORS. - Edge Runtime Guidance: Work within Cloudflare Workers limitations using Web APIs and cloud databases like Turso, D1, or Supabase. - Use Case: You built an Expo Router app with a /api/users endpoint that proxies a third-party API using a secret key. Use this Skill to author the route, set the secret with eas env:create, and deploy both the site and API to production. ## Quick Start Use the eas-hosting skill to deploy my Expo web app and its API routes to EAS Hosting production.

Frequently Asked Questions about eas-hosting

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy an Expo web app to EAS Hosting?▼

Export the web bundle with npx expo export -p web, then run npx eas-cli@latest deploy for a preview URL or add --prod for production. The same deploy ships any Expo Router API routes bundled alongside the site.

How do I create API routes in an Expo Router app?▼

Create files with the +api.ts suffix inside the app directory, such as app/api/hello+api.ts, and export named functions for each HTTP method like GET or POST. Dynamic segments use bracket syntax like app/api/users/[id]+api.ts.

Does EAS Hosting support Node.js modules like fs?▼

No, API routes on EAS Hosting run on Cloudflare Workers, so the Node.js filesystem and native modules are unavailable. Use Web APIs like fetch and crypto.subtle, and connect to cloud databases such as Turso, D1, or Supabase instead.

How do I set environment variables for EAS Hosting?▼

Use eas env:create with a name, value, and environment flag, or configure secrets through the Expo dashboard. For local development, place variables in a .env file that is never committed.

When should I not use Expo API routes?▼

Avoid API routes for public data, real-time updates, simple CRUD, file uploads, or authentication-only needs. Managed backends like Supabase, Firebase, or direct-to-storage uploads fit those cases better.