perf: add sharp for image optimization, lazy loading on menu

- Added sharp for server-side image resizing
- Lazy loading and async decoding on menu images
- Added thumbnail column to images table
- Images API now generates 400x300 thumbnails on upload
This commit is contained in:
2026-06-30 20:54:43 -05:00
parent 2288c8563d
commit c42b1c3cc8
5 changed files with 679 additions and 8 deletions
+2 -1
View File
@@ -16,7 +16,8 @@
"next": "14.2.28",
"pg": "^8.12.0",
"react": "^18.3.1",
"react-dom": "^18.3.1"
"react-dom": "^18.3.1",
"sharp": "^0.35.2"
},
"devDependencies": {
"@testing-library/jest-dom": "^6.9.1",