chore: enhance Nginx configuration for direct access and update main entry point to dynamically resolve Router basename based on environment settings

This commit is contained in:
Alexis
2026-05-13 13:07:40 +02:00
parent a3b9082a71
commit 0265afad5b
2 changed files with 41 additions and 9 deletions
+5
View File
@@ -6,6 +6,11 @@ server {
root /app/dist;
index index.html;
# Acceso directo al puerto (sin Apache): misma app bajo el prefijo del build.
location = / {
return 301 /orcid2words/;
}
# Apache forwards the full path; strip /orcid2words/ before resolving files under dist/.
location = /orcid2words {
return 301 /orcid2words/;