@platformatic/next 3.14.0 → 3.16.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 CHANGED
@@ -214,6 +214,7 @@ export interface PlatformaticNextJsConfig {
214
214
  rejectUnauthorized?: boolean;
215
215
  };
216
216
  };
217
+ reuseTcpPorts?: boolean;
217
218
  startTimeout?: number;
218
219
  restartOnError?: boolean | number;
219
220
  exitOnUnhandledErrors?: boolean;
package/lib/capability.js CHANGED
@@ -63,6 +63,8 @@ export class NextCapability extends BaseCapability {
63
63
  return this.url
64
64
  }
65
65
 
66
+ await super._start({ listen })
67
+
66
68
  this.on('config', config => {
67
69
  this.#basePath = config.basePath
68
70
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/next",
3
- "version": "3.14.0",
3
+ "version": "3.16.0",
4
4
  "description": "Platformatic Next.js Capability",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -23,8 +23,8 @@
23
23
  "iovalkey": "^0.3.0",
24
24
  "msgpackr": "^1.11.2",
25
25
  "semver": "^7.6.3",
26
- "@platformatic/basic": "3.14.0",
27
- "@platformatic/foundation": "3.14.0"
26
+ "@platformatic/basic": "3.16.0",
27
+ "@platformatic/foundation": "3.16.0"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@fastify/reply-from": "^12.0.0",
@@ -40,8 +40,8 @@
40
40
  "next": "^15.0.0",
41
41
  "typescript": "^5.5.4",
42
42
  "ws": "^8.18.0",
43
- "@platformatic/gateway": "3.14.0",
44
- "@platformatic/service": "3.14.0"
43
+ "@platformatic/gateway": "3.16.0",
44
+ "@platformatic/service": "3.16.0"
45
45
  },
46
46
  "engines": {
47
47
  "node": ">=22.19.0"
package/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/next/3.14.0.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/next/3.16.0.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic Next.js Config",
5
5
  "type": "object",
@@ -426,6 +426,10 @@
426
426
  "useHttp": {
427
427
  "type": "boolean"
428
428
  },
429
+ "reuseTcpPorts": {
430
+ "type": "boolean",
431
+ "default": true
432
+ },
429
433
  "workers": {
430
434
  "anyOf": [
431
435
  {
@@ -992,6 +996,10 @@
992
996
  },
993
997
  "additionalProperties": false
994
998
  },
999
+ "reuseTcpPorts": {
1000
+ "type": "boolean",
1001
+ "default": true
1002
+ },
995
1003
  "startTimeout": {
996
1004
  "default": 30000,
997
1005
  "type": "number",