fix: SEO canonical URLs, LCP performance, remove unused dependencies
- Remove duplicate app/projects/ route (was causing 5xx and soft 404) - Fix nginx: redirect www.dk0.dev → dk0.dev (non-www canonical) - Fix not-found.tsx: locale-prefixed links, remove framer-motion dependency - Add fetchPriority='high' and will-change to Hero LCP image - Add preconnect hints for hardcover.app and cms.dk0.dev - Reduce background blur from 100px to 80px (LCP rendering delay) - Remove boneyard-js (~20 KiB), replace with custom Skeleton component - Remove react-icons (~10 KiB), replace with inline SVGs - Conditionally render mobile menu (saves ~20 DOM nodes) - Add /books to sitemap - Optimize image config with explicit deviceSizes/imageSizes
This commit is contained in:
@@ -52,17 +52,34 @@ http {
|
||||
server portfolio:3000 max_fails=3 fail_timeout=30s;
|
||||
}
|
||||
|
||||
# HTTP Server (redirect to HTTPS)
|
||||
# HTTP Server (redirect to HTTPS with www → non-www)
|
||||
server {
|
||||
listen 80;
|
||||
server_name dk0.dev www.dk0.dev;
|
||||
return 301 https://$host$request_uri;
|
||||
server_name www.dk0.dev;
|
||||
return 301 https://dk0.dev$request_uri;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name dk0.dev;
|
||||
return 301 https://dk0.dev$request_uri;
|
||||
}
|
||||
|
||||
# HTTPS - redirect www to non-www
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
server_name www.dk0.dev;
|
||||
|
||||
ssl_certificate /etc/nginx/ssl/cert.pem;
|
||||
ssl_certificate_key /etc/nginx/ssl/key.pem;
|
||||
|
||||
return 301 https://dk0.dev$request_uri;
|
||||
}
|
||||
|
||||
# HTTPS Server
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
server_name dk0.dev www.dk0.dev;
|
||||
server_name dk0.dev;
|
||||
|
||||
# SSL Configuration
|
||||
ssl_certificate /etc/nginx/ssl/cert.pem;
|
||||
|
||||
Reference in New Issue
Block a user