@platformatic/next 3.40.0 → 3.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config.d.ts +1 -0
- package/lib/image-optimizer.js +1 -0
- package/lib/schema.js +13 -0
- package/package.json +5 -5
- package/schema.json +14 -1
package/config.d.ts
CHANGED
package/lib/image-optimizer.js
CHANGED
|
@@ -177,6 +177,7 @@ export class NextImageOptimizerCapability extends BaseCapability {
|
|
|
177
177
|
async #createQueue (imageOptimizerConfig) {
|
|
178
178
|
const queueOptions = {
|
|
179
179
|
visibilityTimeout: imageOptimizerConfig.timeout,
|
|
180
|
+
resultTTL: imageOptimizerConfig.ttl ?? 3600000, // 1 hour
|
|
180
181
|
maxRetries: imageOptimizerConfig.maxAttempts,
|
|
181
182
|
logger: this.logger
|
|
182
183
|
}
|
package/lib/schema.js
CHANGED
|
@@ -182,6 +182,19 @@ const next = {
|
|
|
182
182
|
}
|
|
183
183
|
]
|
|
184
184
|
},
|
|
185
|
+
ttl: {
|
|
186
|
+
default: 3600000, // 1 hour
|
|
187
|
+
anyOf: [
|
|
188
|
+
{
|
|
189
|
+
type: 'number',
|
|
190
|
+
minimum: 0
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
type: 'string',
|
|
194
|
+
pattern: '^[0-9]+$'
|
|
195
|
+
}
|
|
196
|
+
]
|
|
197
|
+
},
|
|
185
198
|
maxAttempts: {
|
|
186
199
|
default: 3,
|
|
187
200
|
anyOf: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/next",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.41.0",
|
|
4
4
|
"description": "Platformatic Next.js Capability",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"light-my-request": "^6.0.0",
|
|
26
26
|
"msgpackr": "^1.11.2",
|
|
27
27
|
"semver": "^7.6.3",
|
|
28
|
-
"@platformatic/basic": "3.
|
|
29
|
-
"@platformatic/foundation": "3.
|
|
28
|
+
"@platformatic/basic": "3.41.0",
|
|
29
|
+
"@platformatic/foundation": "3.41.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@fastify/reply-from": "^12.0.0",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"next": "^16.1.0",
|
|
43
43
|
"typescript": "^5.5.4",
|
|
44
44
|
"ws": "^8.18.0",
|
|
45
|
-
"@platformatic/gateway": "3.
|
|
46
|
-
"@platformatic/service": "3.
|
|
45
|
+
"@platformatic/gateway": "3.41.0",
|
|
46
|
+
"@platformatic/service": "3.41.0"
|
|
47
47
|
},
|
|
48
48
|
"engines": {
|
|
49
49
|
"node": ">=22.19.0"
|
package/schema.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://schemas.platformatic.dev/@platformatic/next/3.
|
|
2
|
+
"$id": "https://schemas.platformatic.dev/@platformatic/next/3.41.0.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"title": "Platformatic Next.js Config",
|
|
5
5
|
"type": "object",
|
|
@@ -2578,6 +2578,19 @@
|
|
|
2578
2578
|
}
|
|
2579
2579
|
]
|
|
2580
2580
|
},
|
|
2581
|
+
"ttl": {
|
|
2582
|
+
"default": 3600000,
|
|
2583
|
+
"anyOf": [
|
|
2584
|
+
{
|
|
2585
|
+
"type": "number",
|
|
2586
|
+
"minimum": 0
|
|
2587
|
+
},
|
|
2588
|
+
{
|
|
2589
|
+
"type": "string",
|
|
2590
|
+
"pattern": "^[0-9]+$"
|
|
2591
|
+
}
|
|
2592
|
+
]
|
|
2593
|
+
},
|
|
2581
2594
|
"maxAttempts": {
|
|
2582
2595
|
"default": 3,
|
|
2583
2596
|
"anyOf": [
|