diff --git a/frontend/Dockerfile b/frontend/Dockerfile index a410a8a..6b9fd82 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -10,7 +10,7 @@ COPY . . # `env_file` en docker-compose solo inyecta variables en el contenedor al ARRANCAR # (aquí nginx no usa Vite). `vite build` corre en esta fase y necesita `VITE_*` # ya definidas: `.env` no entra en el contexto de build (.dockerignore). -ENV VITE_BASE_PATH=/orcid2words/ +ENV VITE_BASE_PATH=/orcid2sword/ RUN npm run build # ── Serve stage ──────────────────────────────────────────────── diff --git a/frontend/nginx.conf b/frontend/nginx.conf index 186ed01..f1b2bc2 100644 --- a/frontend/nginx.conf +++ b/frontend/nginx.conf @@ -16,9 +16,9 @@ server { add_header Cache-Control "no-store" always; } - # Apache en Sinbad2 reescribe la URL pública `/orcid2words/...` a un prefijo + # Apache en Sinbad2 reescribe la URL pública `/orcid2sword/...` a un prefijo # interno distinto (`/flintstones/...`) antes de llegar a este contenedor. - # Hay que quitar ese prefijo y servir desde dist/ igual que con `/orcid2words/` + # Hay que quitar ese prefijo y servir desde dist/ igual que con `/orcid2sword/` # (acceso directo al puerto 8073 sin pasar por Apache). location ^~ /flintstones/ { @@ -30,12 +30,12 @@ server { try_files /index.html =404; } - location ^~ /orcid2words/ { - rewrite ^/orcid2words/(.*)$ /$1 break; + location ^~ /orcid2sword/ { + rewrite ^/orcid2sword/(.*)$ /$1 break; try_files $uri $uri/ /index.html; } - location = /orcid2words { + location = /orcid2sword { try_files /index.html =404; }