06. Engineering
Infrastructure
Hosting Platform

Hosting Platform

This document describes our multi-platform hosting infrastructure, deployment environments, and platform-specific configurations.

Platform Overview

Our hosting strategy is built around two primary platforms, each optimized for different parts of our ecosystem:

Vercel (Web Properties)

  • OurOtters App - Main web application
  • OurOtters Marketing Site - Public marketing website
  • OurOtters Studio - Private internal tool

Mobile App Stores

  • iOS App Store - React Native app via Expo
  • Google Play Store - React Native app via Expo

Supabase (Backend Services)

  • Database Hosting - PostgreSQL database
  • Authentication - User management and auth flows
  • Storage - File and document storage
  • Real-time - Live subscriptions and updates

Hosting Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚   Vercel Web    โ”‚    โ”‚  Mobile Stores  โ”‚    โ”‚   Supabase      โ”‚
โ”‚   Properties    โ”‚    โ”‚                 โ”‚    โ”‚   Backend       โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค    โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค    โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ โ€ข OurOtters App โ”‚    โ”‚ โ€ข iOS App Store โ”‚    โ”‚ โ€ข PostgreSQL    โ”‚
โ”‚ โ€ข Marketing     โ”‚    โ”‚ โ€ข Google Play   โ”‚    โ”‚ โ€ข Auth Service  โ”‚
โ”‚ โ€ข Studio Tool   โ”‚    โ”‚ โ€ข Expo Platform โ”‚    โ”‚ โ€ข File Storage  โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ”‚ โ€ข Real-time     โ”‚
                                              โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Deployment Environments

Production

  • Vercel Production: All web properties deployed to production domains
  • App Stores: Production mobile apps available to end users
  • Supabase Production: Live database and backend services

Development

  • Vercel Preview: Branch deployments for web properties
  • Expo Development: Development builds for mobile testing
  • Supabase Development: Separate development database instance

Platform-Specific Configurations

Vercel Deployments

  • Automatic deployments from main branch
  • Preview deployments for all pull requests
  • Environment variables managed per project
  • Custom domains configured for each property

Mobile App Distribution

  • Expo Application Services (EAS) for building and distribution
  • Over-the-air updates via Expo Updates
  • App store optimization for iOS and Android

Supabase Infrastructure

  • Edge functions for custom backend logic
  • Database migrations managed through Supabase CLI
  • Real-time subscriptions for live data updates
  • Row-level security for data protection

Monitoring and Performance

Web Properties (Vercel)

  • Built-in analytics and performance monitoring
  • Core Web Vitals tracking
  • Function execution monitoring

Mobile Apps

  • Expo analytics for app performance
  • Crash reporting and error tracking
  • App store performance metrics

Backend (Supabase)

  • Database performance monitoring
  • API endpoint analytics
  • Real-time connection monitoring