multica/apps/desktop/.env.example
Naiyuan Qing 8704e37faa fix: clarify dev gateway is hardcoded in root package.json
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-12 19:03:26 +08:00

35 lines
1.4 KiB
Text

# =============================================================================
# Multica Desktop Environment Configuration
# =============================================================================
#
# Local Development:
# `pnpm dev` connects to dev gateway by default (GATEWAY_URL hardcoded in root package.json)
# No .env file needed for local development.
# To use local gateway instead: GATEWAY_URL=http://localhost:3000 pnpm dev
#
# Production Build:
# `pnpm build` uses .env.production automatically
#
# Variable naming convention:
# MAIN_VITE_* - Main process only (Node.js, full system access)
# RENDERER_VITE_* - Renderer process only (browser context)
# VITE_* - All processes
#
# =============================================================================
# URL Configuration
# =============================================================================
#
# MAIN_VITE_GATEWAY_URL - WebSocket Gateway
# Hub connects to Gateway for remote device access (QR code pairing)
# Dev: hardcoded in root package.json (GATEWAY_URL env var in `dev` script)
# Prod: see .env.production
#
# MAIN_VITE_MULTICA_URL - REST API Server
# HTTP requests for authentication, auto-updates, user data sync
# Dev: not yet used
# Prod: see .env.production
#
# =============================================================================
MAIN_VITE_GATEWAY_URL=http://localhost:3000
MAIN_VITE_MULTICA_URL=http://localhost:3001