eas-hosting

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

16|1|Updated May 5, 2026
One-click install
npx skills add https://github.com/AIBiz-Automatyzacje/workspace-template-mobile --skill eas-hosting-aibiz-automatyzacje
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: eas-hosting
Source: https://github.com/AIBiz-Automatyzacje/workspace-template-mobile/tree/main/.claude/skills/eas-hosting
Command: npx skills add https://github.com/AIBiz-Automatyzacje/workspace-template-mobile --skill eas-hosting-aibiz-automatyzacje

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Mobile apps often need server-side logic to hide API keys, proxy third-party services like OpenAI or Stripe, receive webhooks, and validate data — but standing up a separate backend is heavy. This Skill guides you through writing Expo Router API routes (+api.ts) and deploying them together with your web bundle to EAS Hosting, Expo's managed edge runtime on Cloudflare Workers. ## Core Features & Use Cases - API Route Authoring: Create +api.ts endpoints with GET/POST/PUT/DELETE handlers, dynamic routes, query params, headers, JSON bodies, CORS, and error handling. - Secret Management: Keep OpenAI, Stripe, and database credentials server-side via process.env and eas env:create, never in client code. - Deployment Workflow: Export with npx expo export -p web, deploy previews and production with eas deploy, and automate via EAS Workflows on push or pull request. - Edge Runtime Guidance: Work within Cloudflare Workers constraints (no Node fs, 30s CPU limit) using Web APIs and cloud databases like Turso, D1, or Supabase. - Use Case: You need to call the OpenAI API from your Expo app without exposing the key — create app/api/ai+api.ts as a proxy endpoint, set the secret with eas env:create, and deploy with eas deploy --prod. ## Quick Start Ask the assistant to create an Expo Router API route that proxies requests to OpenAI with the key stored as an environment variable, then deploy it 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 Expo API routes to EAS Hosting?

Export the web bundle with npx expo export -p web, then run npx eas-cli@latest deploy for a preview or add --prod for production. The same command deploys both your website and any +api.ts routes bundled with it.

How do I hide API keys in an Expo app?

Create an API route file like app/api/ai+api.ts that calls the external service server-side using process.env. Store the secret with eas env:create or in a local .env file, so the key never reaches client code.

Does EAS Hosting support Node.js modules like fs?

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

When should I not use Expo API routes?

Avoid them for public data, real-time updates (use Supabase Realtime or WebSockets), simple CRUD (consider Firebase or Supabase), file uploads (use S3 presigned URLs), and auth-only needs (use Clerk or Firebase Auth).

How do I test Expo API routes locally?

Run npx expo serve to start a local server at http://localhost:8081 with full API route support. Test endpoints with curl, for example curl -X POST http://localhost:8081/api/users with a JSON body.

Is EAS Hosting free?

EAS Hosting is a paid Expo Application Services product with free-tier limits; 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.