2 Commits

Author SHA1 Message Date
mnky 20e6b1d33b Merge pull request 'fix: add nginx SPA fallback' (#8) from build/add-push-drone-pipeleine-2 into main
continuous-integration/drone/push Build is passing
Reviewed-on: #8
2026-03-09 11:51:40 +00:00
Dennis Hundertmark 3cf3da9886 fix: add nginx SPA fallback
continuous-integration/drone/pr Build is passing
2026-03-09 12:51:03 +01:00
2 changed files with 13 additions and 1 deletions
+1
View File
@@ -9,5 +9,6 @@ RUN npm run build
# Runtime Stage # Runtime Stage
FROM nginx:alpine FROM nginx:alpine
COPY --from=builder /app/dist/*/browser /usr/share/nginx/html COPY --from=builder /app/dist/*/browser /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80 EXPOSE 80
CMD ["nginx", "-g", "daemon off;"] CMD ["nginx", "-g", "daemon off;"]
+11
View File
@@ -0,0 +1,11 @@
server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
}