web: improve management of `.env` files

- Ignores `.env.production`.
- Improvees `.env.example` file.

Co-Authored-by: iGor milhit <igor@milhit.ch>
main
iGor milhit 2026-01-14 11:18:49 +01:00
parent bf3e29fb0e
commit 22563c2113
Signed by: igor
GPG Key ID: 692D97C3D0228A99
2 changed files with 4 additions and 2 deletions

View File

@ -1,2 +1,5 @@
# API URL (required)
# Development
VITE_API_URL=http://localhost:8000
# Production
VITE_API_URL=https://domaine.org/api

3
web/.gitignore vendored
View File

@ -25,12 +25,11 @@ dist-ssr
.vite
.env
.env*
.env.local
.env*.local
!.env.example
!.env.template
!env.development
!env.production
coverage