feat: добавить генерацию image variants
- добавлен shared config presets, custom transforms и allowlist hosts - реализованы Backend endpoints для assets, presets и variants - добавлена orchestration через PostgreSQL, RabbitMQ, S3 и worker - обновлён Gateway read-through flow с L1 cache и корректным Vary: Accept - добавлена миграция resize_mode для variants lookup - обновлены dev scripts, env template, lockfile и документация
This commit is contained in:
@@ -22,7 +22,7 @@ module.exports = {
|
||||
images: {
|
||||
loader: "custom",
|
||||
loaderFile: "./src/image-platform-loader.js",
|
||||
qualities: [60, 75, 80, 90],
|
||||
qualities: [75, 80],
|
||||
},
|
||||
}
|
||||
```
|
||||
@@ -58,7 +58,7 @@ export function ProductCard() {
|
||||
GET /images/{assetId}/v{version}/{preset}?w={width}&q={quality}&f=auto
|
||||
```
|
||||
|
||||
Сейчас route уже зарезервирован в Fastify Gateway, но возвращает placeholder `501`, пока не реализованы PostgreSQL/S3/imgproxy read-through операции.
|
||||
Route реализован в Fastify Gateway. Для `card` ширина должна входить в static preset allowlist: `320`, `640`, `960`.
|
||||
|
||||
Пример:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user