From ce24dc4c6e80f10eadb0cd225c2508904b7dcc32 Mon Sep 17 00:00:00 2001
From: jose-rZM <100773386+jose-rZM@users.noreply.github.com>
Date: Tue, 23 Dec 2025 18:30:53 +0100
Subject: [PATCH] Add context path
---
frontend/Dockerfile | 2 +-
frontend/nginx.conf | 4 ++--
frontend/src/App.svelte | 2 +-
frontend/vite.config.js | 2 +-
4 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/frontend/Dockerfile b/frontend/Dockerfile
index a28b467..9ead6b2 100644
--- a/frontend/Dockerfile
+++ b/frontend/Dockerfile
@@ -7,6 +7,6 @@ RUN npm run build
FROM nginx:1.27-alpine AS final
COPY nginx.conf /etc/nginx/conf.d/default.conf
-COPY --from=build /app/dist /usr/share/nginx/html
+COPY --from=build /app/dist /usr/share/nginx/html/taller
EXPOSE 8081
CMD ["nginx", "-g", "daemon off;"]
diff --git a/frontend/nginx.conf b/frontend/nginx.conf
index 785c42c..4e23060 100644
--- a/frontend/nginx.conf
+++ b/frontend/nginx.conf
@@ -5,7 +5,7 @@ server {
root /usr/share/nginx/html;
index index.html;
- location / {
- try_files $uri /index.html;
+ location /taller/ {
+ try_files $uri $uri/ /index.html;
}
}
diff --git a/frontend/src/App.svelte b/frontend/src/App.svelte
index 5e1298b..4782c98 100644
--- a/frontend/src/App.svelte
+++ b/frontend/src/App.svelte
@@ -467,7 +467,7 @@ along with this program. If not, see
diff --git a/frontend/vite.config.js b/frontend/vite.config.js
index e5764f0..8b8818e 100644
--- a/frontend/vite.config.js
+++ b/frontend/vite.config.js
@@ -2,7 +2,7 @@ import { defineConfig } from 'vite';
import { svelte } from '@sveltejs/vite-plugin-svelte';
export default defineConfig({
- base: '/taller',
+ base: '/taller/',
plugins: [svelte()],
test: {
environment: 'jsdom',