Compare commits

...
9 Commits
Author SHA1 Message Date
Reece 126b4dc1b2 Nginx again 2025-09-25 15:38:04 +01:00
Reece 9be7f9637e nginx changes 2025-09-25 14:45:58 +01:00
Reece 4cf106750c nginx update 2025-09-25 14:04:49 +01:00
Reece Browne 883b167e55 Update vite.config.ts 2025-09-25 13:49:30 +01:00
Reece d12214c689 Clean and install frontend dependencies in build workflow 2025-09-25 12:40:43 +01:00
Reece ef76de8320 Lock mantine package versions 2025-09-25 12:31:23 +01:00
Reece 23f97029a2 Lock mantine version 2025-09-25 12:26:39 +01:00
Reece Browne 56efcba5d0 Remove HTTPS configuration from vite.config.ts
Removed HTTPS configuration from Vite server settings.
2025-09-25 11:44:55 +01:00
Reece bc3bcb9c25 fix 2025-09-25 11:02:05 +01:00
5 changed files with 29 additions and 11 deletions
+2 -2
View File
@@ -145,8 +145,8 @@ jobs:
node-version: '20'
cache: 'npm'
cache-dependency-path: frontend/package-lock.json
- name: Install frontend dependencies
run: cd frontend && npm ci
- name: Clean and install frontend dependencies
run: cd frontend && rm -rf node_modules package-lock.json && npm install
- name: Lint frontend
run: cd frontend && npm run lint
- name: Build frontend
+14 -1
View File
@@ -6,6 +6,11 @@ http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
# Add .mjs MIME type mapping
types {
text/javascript mjs;
}
# Gzip compression
gzip on;
gzip_vary on;
@@ -90,7 +95,15 @@ http {
proxy_set_header X-Forwarded-Port $server_port;
}
# Cache static assets
# Serve .mjs files with correct MIME type (must come before general static assets)
location ~* \.mjs$ {
try_files $uri =404;
add_header Content-Type "text/javascript; charset=utf-8" always;
expires 1y;
add_header Cache-Control "public, immutable";
}
# Cache other static assets
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {
expires 1y;
add_header Cache-Control "public, immutable";
+4 -4
View File
@@ -28,10 +28,10 @@
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.1",
"@iconify/react": "^6.0.2",
"@mantine/core": "^8.3.1",
"@mantine/dates": "^8.3.1",
"@mantine/dropzone": "^8.3.1",
"@mantine/hooks": "^8.3.1",
"@mantine/core": "8.3.1",
"@mantine/dates": "8.3.1",
"@mantine/dropzone": "8.3.1",
"@mantine/hooks": "8.3.1",
"@mui/icons-material": "^7.3.2",
"@mui/material": "^7.3.2",
"@tailwindcss/postcss": "^4.1.13",
+4 -4
View File
@@ -24,10 +24,10 @@
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.1",
"@iconify/react": "^6.0.2",
"@mantine/core": "^8.3.1",
"@mantine/dates": "^8.3.1",
"@mantine/dropzone": "^8.3.1",
"@mantine/hooks": "^8.3.1",
"@mantine/core": "8.3.1",
"@mantine/dates": "8.3.1",
"@mantine/dropzone": "8.3.1",
"@mantine/hooks": "8.3.1",
"@mui/icons-material": "^7.3.2",
"@mui/material": "^7.3.2",
"@tailwindcss/postcss": "^4.1.13",
+5
View File
@@ -12,5 +12,10 @@ export default defineConfig({
},
},
},
optimizeDeps: {
esbuildOptions: {
target: 'es2020'
}
},
base: process.env.RUN_SUBPATH ? `/${process.env.RUN_SUBPATH}` : './',
});