Skip to content

Commit 580e92f

Browse files
committed
fix: nginx config
1 parent d33f048 commit 580e92f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

e2e/server/nginx.conf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ server {
1919
listen 6174;
2020

2121
location /ui {
22-
rewrite ^/ui$ /ui/ permanent;
22+
rewrite ^/ui$ /ui/ permanent;
2323
}
2424

2525
location /ui/ {
2626
alias /usr/share/nginx/html/;
27-
index index.html;
28-
try_files $uri $uri/ /ui/index.html;
27+
gzip_static always;
28+
error_page 404 /ui/index.html;
2929
}
3030

3131
location / {

vite.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ export default defineConfig({
8585
plugins: [observerPlugin() as never],
8686
}),
8787
compression({
88-
algorithms: ['gzip', 'brotliCompress'],
88+
algorithms: ['gzip'],
89+
deleteOriginalAssets: true,
8990
}),
9091
],
9192
css: {

0 commit comments

Comments
 (0)