Deployment Overview
Tune Me In is built on Shopify Hydrogen, a React-based framework for building custom Shopify storefronts. This guide covers deployment options and the build process for getting your storefront into production.Hosting Options
Hydrogen apps can be deployed to various hosting platforms. Tune Me In includes configurations for:Fly.io (Recommended)
The project includes afly.toml configuration file for deploying to Fly.io, which provides:
- Global edge deployment
- Automatic SSL certificates
- Built-in load balancing
- Easy scaling options
- Port: 8080 (internal)
- External ports: 80 (HTTP) and 443 (HTTPS)
- Concurrency limits: 20 soft / 25 hard connections
Cloudflare Workers
The project includes aworker.js file for deploying to Cloudflare Workers:
- Serverless edge computing
- Global CDN distribution
- Excellent performance for static assets
- Built-in caching with
caches.default
Node.js Server
For traditional hosting environments, Tune Me In includes an Express-based Node.js server (server.js) that can run on:
- DigitalOcean
- AWS EC2
- Google Cloud Compute
- Any VPS or container platform
Edgio (Layer0)
The project includes Edgio (formerly Layer0) deployment scripts:Build Process
Tune Me In uses Vite as its build tool. The build process creates three separate bundles:Deployment with Docker
The project includes aDockerfile for containerized deployments:
- Installs dependencies and builds the app in a Node.js environment
- Copies the built application to a minimal distroless image
- Exposes port 8080 for the Express server
Production Server
The production server (server.js) includes:
- Compression: Automatic response compression for faster delivery
- Static file serving: Efficient serving of built client assets
- Hydrogen middleware: Server-side rendering with Hydrogen
- Configurable port: Defaults to 8080, configurable via
PORTenvironment variable
Development vs Production
Key differences between development and production modes:| Feature | Development | Production |
|---|---|---|
| Server | Vite dev server | Express + Hydrogen middleware |
| Hot reload | ✓ Enabled | ✗ Disabled |
| Caching | ✗ Disabled | ✗ Currently disabled |
| Compression | ✗ Disabled | ✓ Enabled |
| Source maps | ✓ Inline | ✓ Enabled with --enable-source-maps |
| Build output | In-memory | dist/ directory |
Next Steps
Environment Configuration
Configure environment variables and credentials for production
Hydrogen Deployment Docs
Official Shopify Hydrogen deployment documentation