.env.example (954B)
1 # Comma-separated hostnames allowed by Vite (dev + preview). 2 # Use * to allow any host (not recommended in production). 3 ALLOWED_HOSTS=snow.pablomurad.com,localhost,127.0.0.1 4 5 # Backend (local npm — terminal 2: cd backend && npm run dev) 6 PORT=41738 7 DATABASE_PATH=./data/snow.db 8 9 # Origins allowed to create shared documents (POST /api/documents) 10 SHARE_ALLOWED_ORIGINS=https://snow.pablomurad.com,http://localhost:41737,http://127.0.0.1:41737 11 12 # Optional CORS for local dev when API is called directly (default: use Vite proxy) 13 # CORS_ORIGIN=http://localhost:41737 14 15 # Frontend API base (empty = same origin /api via proxy) 16 # VITE_API_BASE= 17 18 # Public site URL for shared view/edit links (empty = use current browser origin) 19 # Set when developing on localhost but sharing links for production: 20 VITE_PUBLIC_ORIGIN=https://snow.pablomurad.com 21 22 # Allow search engines to index the site (true | false). Rebuild after changing. 23 VITE_ALLOW_SEARCH_INDEXING=false