Generated by Spark: Should handle caprover / cloudflare cors - Check frontend and backend config. example setup: https://frontend.example.com https://backend.example.com

This commit is contained in:
2026-01-17 18:47:08 +00:00
committed by GitHub
parent ca93235cde
commit a469b44a54
17 changed files with 2165 additions and 200 deletions

View File

@@ -1,4 +1,16 @@
# Flask Backend Configuration (Optional)
# If set, the app will automatically use Flask backend instead of IndexedDB
# Example: VITE_FLASK_BACKEND_URL=http://localhost:5000
# Frontend Configuration
# Flask Backend URL - If set, the app will automatically use Flask backend instead of IndexedDB
# Development: VITE_FLASK_BACKEND_URL=http://localhost:5000
# Production: VITE_FLASK_BACKEND_URL=https://backend.example.com
VITE_FLASK_BACKEND_URL=
# Backend Configuration (for backend/app.py)
# CORS Allowed Origins - Comma-separated list of allowed frontend URLs
# Development: CORS_ALLOWED_ORIGINS=*
# Production: CORS_ALLOWED_ORIGINS=https://frontend.example.com
# Multiple: CORS_ALLOWED_ORIGINS=https://frontend.example.com,https://app.example.com
CORS_ALLOWED_ORIGINS=*
# Database Path - Location of SQLite database file in backend
# Default: DATABASE_PATH=/app/data/snippets.db
DATABASE_PATH=/app/data/snippets.db