perf: optimize portfolio runtime delivery
Replace the blocking asset loader with progressive rendering, defer expensive media and Three.js work, and reduce hydration and animation costs. Move deployment from a static Nginx export to the standalone Next.js runtime with optimized dynamic images.
This commit is contained in:
15
compose.yaml
15
compose.yaml
@@ -1,11 +1,19 @@
|
||||
services:
|
||||
static-site:
|
||||
portfolio-app:
|
||||
image: amiirkhl-portfolio:latest
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
container_name: static-site
|
||||
container_name: portfolio-app
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:3000/"]
|
||||
interval: 30s
|
||||
timeout: 3s
|
||||
start_period: 10s
|
||||
retries: 3
|
||||
volumes:
|
||||
- next-image-cache:/app/.next/cache
|
||||
networks:
|
||||
- caddy_proxy
|
||||
|
||||
@@ -13,3 +21,6 @@ networks:
|
||||
caddy_proxy:
|
||||
external: true
|
||||
name: caddy_proxy
|
||||
|
||||
volumes:
|
||||
next-image-cache:
|
||||
|
||||
Reference in New Issue
Block a user