feat: integrate WebP/AVIF image optimization into build pipeline
- Add sharp dependency for image format conversion - Generate WebP (quality 80) and AVIF (quality 70) variants for all raster images - Render <picture> elements with srcset fallbacks (AVIF > WebP > original) - SVG images remain as <img> without picture wrapper - Update Dockerfile to install libvips for sharp, copy from public/ dir - Add nginx cache rules for .webp and .avif files - Add .gitignore for node_modules, public, dist
This commit is contained in:
+2
-2
@@ -1,7 +1,7 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: signalledger
|
||||
name: news-site
|
||||
namespace: openclaw-private
|
||||
labels:
|
||||
app.kubernetes.io/name: signalledger
|
||||
@@ -26,7 +26,7 @@ spec:
|
||||
app.kubernetes.io/part-of: signalledger
|
||||
spec:
|
||||
containers:
|
||||
- name: signalledger
|
||||
- name: news-site
|
||||
image: registry.claw.jopdorp.nl/signalledger:latest
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
|
||||
Reference in New Issue
Block a user