@platformatic/next 3.42.0 → 3.44.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 +4 -0
- package/lib/capability.js +1 -1
- package/lib/image-optimizer.js +1 -1
- package/package.json +6 -6
- package/schema.json +15 -1
package/config.d.ts
CHANGED
|
@@ -118,6 +118,9 @@ export interface PlatformaticNextJsConfig {
|
|
|
118
118
|
development?: string;
|
|
119
119
|
production?: string;
|
|
120
120
|
};
|
|
121
|
+
entrypointPort?: number;
|
|
122
|
+
changeDirectoryBeforeExecution?: boolean;
|
|
123
|
+
preferLocalCommands?: boolean;
|
|
121
124
|
};
|
|
122
125
|
runtime?: {
|
|
123
126
|
preload?: string | string[];
|
|
@@ -546,6 +549,7 @@ export interface PlatformaticNextJsConfig {
|
|
|
546
549
|
env?: {
|
|
547
550
|
[k: string]: string;
|
|
548
551
|
};
|
|
552
|
+
envfile?: string;
|
|
549
553
|
sourceMaps?: boolean;
|
|
550
554
|
nodeModulesSourceMaps?: string[];
|
|
551
555
|
scheduler?: {
|
package/lib/capability.js
CHANGED
package/lib/image-optimizer.js
CHANGED
|
@@ -217,7 +217,7 @@ export class NextImageOptimizerCapability extends BaseCapability {
|
|
|
217
217
|
const { pathname, searchParams } = new URL(request.url, 'http://localhost')
|
|
218
218
|
const imagePath = `${this.#basePath}/_next/image`
|
|
219
219
|
|
|
220
|
-
if (request.method !== 'GET' || pathname !== imagePath) {
|
|
220
|
+
if (request.method !== 'GET' || cleanBasePath(pathname) !== cleanBasePath(imagePath)) {
|
|
221
221
|
response.statusCode = 404
|
|
222
222
|
response.end('Not Found')
|
|
223
223
|
return
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/next",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.44.0",
|
|
4
4
|
"description": "Platformatic Next.js Capability",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
"@babel/parser": "^7.25.3",
|
|
20
20
|
"@babel/traverse": "^7.25.3",
|
|
21
21
|
"@babel/types": "^7.25.2",
|
|
22
|
-
"@platformatic/image-optimizer": "^0.2.
|
|
22
|
+
"@platformatic/image-optimizer": "^0.2.1",
|
|
23
23
|
"amaro": "^0.3.0",
|
|
24
24
|
"iovalkey": "^0.3.0",
|
|
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.44.0",
|
|
29
|
+
"@platformatic/foundation": "3.44.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/
|
|
46
|
-
"@platformatic/
|
|
45
|
+
"@platformatic/service": "3.44.0",
|
|
46
|
+
"@platformatic/gateway": "3.44.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.44.0.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"title": "Platformatic Next.js Config",
|
|
5
5
|
"type": "object",
|
|
@@ -379,6 +379,17 @@
|
|
|
379
379
|
},
|
|
380
380
|
"default": {},
|
|
381
381
|
"additionalProperties": false
|
|
382
|
+
},
|
|
383
|
+
"entrypointPort": {
|
|
384
|
+
"type": "number"
|
|
385
|
+
},
|
|
386
|
+
"changeDirectoryBeforeExecution": {
|
|
387
|
+
"type": "boolean",
|
|
388
|
+
"default": false
|
|
389
|
+
},
|
|
390
|
+
"preferLocalCommands": {
|
|
391
|
+
"type": "boolean",
|
|
392
|
+
"default": true
|
|
382
393
|
}
|
|
383
394
|
},
|
|
384
395
|
"additionalProperties": false,
|
|
@@ -2025,6 +2036,9 @@
|
|
|
2025
2036
|
"type": "string"
|
|
2026
2037
|
}
|
|
2027
2038
|
},
|
|
2039
|
+
"envfile": {
|
|
2040
|
+
"type": "string"
|
|
2041
|
+
},
|
|
2028
2042
|
"sourceMaps": {
|
|
2029
2043
|
"type": "boolean",
|
|
2030
2044
|
"default": false
|