Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .prod/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ http {
default_type application/octet-stream;

server {
# Gzip Settings
gzip on;
gzip_vary on; # prevents cache issues
gzip_static on; # allows pre-serving of .gz file if it exists
gzip_min_length 256; # Only gzip files of size in bytes
gzip_proxied any; # enable gzip for all proxied requests
gzip_comp_level 6;
gzip_types text/plain text/css application/javascript application/json application/xml text/xml image/svg+xml application/manifest+json;
gunzip on; # Decompress gzipped upstream responses for clients that don't support gzip (proxy-only)

listen 8086;
server_name localhost;

Expand Down
10 changes: 10 additions & 0 deletions vite.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,16 @@ export default defineConfig(() => {
outDir: './build',
emptyOutDir: true,
sourcemap: true,
rollupOptions: {
output: {
manualChunks: {
vendor: ['react', 'react-dom'],
ui: ['hds-react'],
editor: ['draft-js', '@draft-js-plugins/editor'],
maps: ['leaflet', 'react-leaflet']
}
}
}
},
publicDir: cityPublic,
server: {
Expand Down
Loading