chore: update comments and documentation for clarity and consistency across various files
- Translated comments from Spanish to English in vite.config.ts, docker-compose.yml, attendance-risk.ts, analytics.ts, attendance.ts, attendees.ts, enums.ts, groups.ts, and onboarding.ts. - Improved descriptions for better understanding of code functionality and purpose. - Ensured uniformity in terminology and phrasing throughout the codebase.
This commit is contained in:
@@ -1,14 +1,15 @@
|
||||
# Deploy en Dokploy (o `docker compose up --build` en cualquier lado).
|
||||
# Deploy on Dokploy (or `docker compose up --build` anywhere).
|
||||
#
|
||||
# El dominio público se expone una sola vez, en `web`: nginx sirve el bundle de
|
||||
# Vite y hace de proxy de /api hacia el contenedor `api`. Eso deja la cookie de
|
||||
# sesión first-party (no hace falta SameSite=None) y vuelve innecesario el
|
||||
# preflight CORS. Si preferís subdominio aparte para la API, quitá el bloque
|
||||
# `location /api/` de apps/web/nginx.conf y seteá VITE_API_URL al construir web.
|
||||
# The public domain is exposed once, on `web`: nginx serves the Vite bundle and
|
||||
# proxies /api to the `api` container. That keeps the session cookie
|
||||
# first-party (no SameSite=None needed) and makes the CORS preflight
|
||||
# unnecessary. If you rather have the API on its own subdomain, drop the
|
||||
# `location /api/` block from apps/web/nginx.conf and set VITE_API_URL when
|
||||
# building web.
|
||||
|
||||
x-backend-env: &backend-env
|
||||
NODE_ENV: production
|
||||
# Web y API comparten dominio público: mismo origen para cookies y CORS.
|
||||
# Web and API share the public domain: same origin for cookies and CORS.
|
||||
DATABASE_URL: "${DATABASE_URL:?falta DATABASE_URL}"
|
||||
WEB_URL: "${WEB_URL:?falta WEB_URL - origen publico de la app, sin barra final}"
|
||||
BETTER_AUTH_URL: "${WEB_URL:?falta WEB_URL - origen publico de la app, sin barra final}"
|
||||
@@ -42,26 +43,26 @@ services:
|
||||
dockerfile: Dockerfile.web
|
||||
target: web
|
||||
args:
|
||||
# Se hornea en el bundle. Vacío = mismo origen (proxy /api de nginx).
|
||||
# Baked into the bundle. Empty = same origin (nginx's /api proxy).
|
||||
VITE_API_URL: ${VITE_API_URL:-}
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
- api
|
||||
ports:
|
||||
# Publicación en el host, solo para probar en local. En Dokploy el dominio
|
||||
# va al puerto 80 del contenedor: Traefik no pasa por el mapeo.
|
||||
# Host publishing, only for local testing. On Dokploy the domain goes to
|
||||
# port 80 of the container: Traefik does not go through the mapping.
|
||||
- "8080:80"
|
||||
networks:
|
||||
- default
|
||||
# Dokploy agrega dokploy-network solo al servicio con dominio, así que hay
|
||||
# que declararla explícitamente para que Traefik llegue a este contenedor.
|
||||
# Dokploy adds dokploy-network only to the service with a domain, so it has
|
||||
# to be declared explicitly for Traefik to reach this container.
|
||||
- dokploy-network
|
||||
|
||||
# Red compartida de Dokploy: es donde viven las bases de datos que administra
|
||||
# Dokploy. Sin esto, el contenedor api no resuelve ni alcanza a la base y Prisma
|
||||
# falla con P1001 "Can't reach database server".
|
||||
# Dokploy shared network: that is where the databases Dokploy manages live.
|
||||
# Without it, the api container neither resolves nor reaches the database and
|
||||
# Prisma fails with P1001 "Can't reach database server".
|
||||
#
|
||||
# Fuera de Dokploy hay que crearla una vez antes del primer `docker compose up`:
|
||||
# Outside Dokploy you have to create it once, before the first `docker compose up`:
|
||||
# docker network create dokploy-network
|
||||
networks:
|
||||
dokploy-network:
|
||||
|
||||
Reference in New Issue
Block a user