Merge pull request #153 from FifoF/main

Patch nginx config in Docker image to fix SPA routing
This commit is contained in:
Ibrahima G. Coulibaly
2025-07-07 01:55:20 +01:00
committed by GitHub

View File

@@ -11,6 +11,7 @@ RUN npm run build
FROM nginx:alpine
COPY --from=build /app/dist /usr/share/nginx/html
RUN sed -i 's|index index.html index.htm;|index index.html index.htm;\n try_files $uri $uri/ /index.html;|' /etc/nginx/conf.d/default.conf
# Expose port 80
EXPOSE 80