From b08e3d2c194ecfa0c6e3a1a988839f519fa7e486 Mon Sep 17 00:00:00 2001 From: Ihor_Zhekov Date: Thu, 30 Apr 2026 16:16:40 +0200 Subject: [PATCH] Add SPA routing fix and nginx config for Coolify deployment --- nginx.conf | 13 +++++++++++++ public/_redirects | 1 + 2 files changed, 14 insertions(+) create mode 100644 nginx.conf create mode 100644 public/_redirects diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..c6047e2 --- /dev/null +++ b/nginx.conf @@ -0,0 +1,13 @@ +server { + listen 80; + root /usr/share/nginx/html; + index index.html; + + location / { + try_files $uri $uri/ /index.html; + } + + gzip on; + gzip_types text/plain text/css application/javascript application/json image/svg+xml; + gzip_min_length 1000; +} diff --git a/public/_redirects b/public/_redirects new file mode 100644 index 0000000..7797f7c --- /dev/null +++ b/public/_redirects @@ -0,0 +1 @@ +/* /index.html 200