Collection of handy online tools for developers, with great UX.
TypeScript converterdeveloper-productivitydeveloper-toolsfrontendjavascriptproductivitytooltoolstypescriptvuejswebsite
fix(docker): nginx config to redirect to index.html
Corentin Thomasset972ffe6f69cd
diff --git a/Dockerfile b/Dockerfileindex af4776c1..b0e33820 100644--- a/Dockerfile+++ b/Dockerfile@@ -9,5 +9,6 @@ RUN pnpm build# production stageFROM nginx:stable-alpine as production-stageCOPY --from=build-stage /app/dist /usr/share/nginx/html+COPY nginx.conf /etc/nginx/conf.d/default.confEXPOSE 80CMD ["nginx", "-g", "daemon off;"]\ No newline at end of filediff --git a/nginx.conf b/nginx.confnew file mode 100644index 00000000..1a30e15e--- /dev/null+++ b/nginx.conf@@ -0,0 +1,10 @@+server {+ listen 80;+ server_name localhost;+ root /usr/share/nginx/html;+ index index.html;++ location / {+ try_files $uri $uri/ /index.html;+ }+}\ No newline at end of file