Files
Komediruzecki 00f1f75b25 feat: chart layout fix + env config for storage mode
Chart layout:
- Position doughnut/pie chart legends on the right side for more horizontal space
- Increase chart container height (tall: 320→400px, dashboard tall: 360→420px)
- Remove overflow:hidden from chart container to prevent legend clipping

Environment configuration:
- Add .env with VITE_DEFAULT_STORAGE=dexie (client-only default)
- Add .env.local (gitignored) with sqlite for production
- Add VITE_SITE_DOMAIN, VITE_API_BASE_URL, VITE_CORS_ORIGINS env vars
- Wire storageFactory.getStorageMode() to respect VITE_DEFAULT_STORAGE
- Wire Settings page default storage type from env variable
- Add ImportMetaEnv type declarations for all env vars
- Remove .env from gitignore so it's committed as template
2026-05-12 22:10:45 +02:00

16 lines
573 B
Bash

# Finance Manager — Default Environment Configuration
# These values are used for client-only (serverless) deployments.
# Override in .env.local for self-hosted/production setups.
# Default storage mode: "dexie" = client-only IndexedDB, "sqlite" = backend SQLite server
VITE_DEFAULT_STORAGE=dexie
# Site domain (used for CORS, OAuth redirects, etc.)
VITE_SITE_DOMAIN=localhost
# API base URL (only used in self-hosted mode)
VITE_API_BASE_URL=http://localhost:3847
# CORS allowed origins (comma-separated)
VITE_CORS_ORIGINS=http://localhost:3800,http://localhost:3847