Files
whattoplay/.env.production.example
Felix Förtsch 0fe09f01f8 add simple Uberspace deployment option (simpler than Cloudflare)
Instead of the complex Cloudflare Worker setup with CORS proxy,
you can now deploy both PWA and backend on Uberspace (~5€/month).

Changes:
- Add Express.js backend server (server/index.js)
- Update ConfigService to support VITE_API_URL env variable
- Make base path configurable via VITE_BASE_PATH
- Add comprehensive Uberspace deployment guide
- Add .env.production.example for configuration

Deployment options:
1. Uberspace (recommended): Simple, all-in-one hosting
2. GitHub Pages + Cloudflare Workers: Free but complex setup

Co-Authored-By: Claude <noreply@anthropic.com>
2026-02-06 20:50:56 +01:00

17 lines
482 B
Plaintext

# Backend URL (wo läuft dein Express Server?)
# Uberspace / eigenes Backend
VITE_API_URL=https://your-username.uber.space
# GitHub Pages (wenn du GitHub Pages nutzt, aber Uberspace Backend)
# VITE_API_URL=https://your-username.uber.space
# Lokales Backend (für Development mit separatem Backend)
# VITE_API_URL=http://localhost:3000
# Base Path (für URLs und Routing)
# GitHub Pages deployment:
# VITE_BASE_PATH=/whattoplay/
# Uberspace deployment (root):
# VITE_BASE_PATH=/