From f08e2020cfc946be1bf58214d71c2eb7d5c3c29b Mon Sep 17 00:00:00 2001 From: mukesh13 Date: Mon, 23 Jun 2025 19:39:36 +0530 Subject: [PATCH] Docker update --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index d5ec799..2058abf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,4 +14,7 @@ FROM nginx:alpine COPY --from=build /app/public /usr/share/nginx/html +# Fix for Gatsby client-side routing +RUN echo 'server { listen 80; root /usr/share/nginx/html; index index.html; location / { try_files $uri $uri/ /index.html; } }' > /etc/nginx/conf.d/default.conf + EXPOSE 80 \ No newline at end of file