eas-hosting

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

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/Taquit/Life-Manager --skill eas-hosting-taquit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: eas-hosting
Source: https://github.com/Taquit/Life-Manager/tree/main/double_m_react/.agents/skills/eas-hosting
Command: npx skills add https://github.com/Taquit/Life-Manager --skill eas-hosting-taquit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? It guides developers through deploying Expo web applications and Expo Router API routes to EAS Hosting, handling the export, deploy, environment secrets, and custom domain configuration that would otherwise require piecing together scattered Expo documentation. ## 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 with HTTP methods, dynamic routes, request parsing, CORS headers, and error handling. - Runtime Guidance: Work within Cloudflare Workers constraints such as no Node.js filesystem, 30-second execution limits, and Web API alternatives. - Use Case: You built an Expo Router app that needs a server-side endpoint to proxy OpenAI requests without exposing your API key. Use this Skill to author an app/api/ai+api.ts route, set the secret with eas env:create, and deploy to production with a custom domain. ## 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 command deploys any Expo Router API routes bundled alongside the site.

How do I create API routes in Expo Router?

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 run on Cloudflare Workers, so the Node.js filesystem and native modules are unavailable. Use Web APIs like fetch, crypto.subtle, Request, and Response instead, and connect to cloud databases such as Turso, Supabase, or Neon.

How do I set environment variables for EAS Hosting?

Use eas env:create with the name, value, and environment flags, or configure secrets through the Expo dashboard. Locally, place variables in a .env file that is never committed, and access them in routes via process.env.

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. Use Supabase Realtime, Firebase, direct-to-storage uploads, or dedicated auth providers like Clerk or Auth0 instead.

Is EAS Hosting free to use?

EAS Hosting is a paid Expo Application Services product with free-tier limits, and production deploys consume your plan's request and bandwidth allowance. Authoring API routes and exporting the web bundle are free, and you can self-host the exported output instead.