@platformatic/next 3.50.0 → 3.52.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.
@@ -1,5 +1,6 @@
1
1
  import {
2
2
  BaseCapability,
3
+ buildListenOptions,
3
4
  errors as basicErrors,
4
5
  createServerListener,
5
6
  getServerUrl,
@@ -82,7 +83,7 @@ export class NextImageOptimizerCapability extends BaseCapability {
82
83
 
83
84
  if (this.#app && listen) {
84
85
  const serverOptions = this.serverConfig
85
- const listenOptions = { host: serverOptions?.hostname || '127.0.0.1', port: serverOptions?.port || 0 }
86
+ const listenOptions = buildListenOptions(serverOptions)
86
87
 
87
88
  if (typeof serverOptions?.backlog === 'number') {
88
89
  createServerListener(false, false, { backlog: serverOptions.backlog })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/next",
3
- "version": "3.50.0",
3
+ "version": "3.52.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/foundation": "3.50.0",
29
- "@platformatic/basic": "3.50.0"
28
+ "@platformatic/foundation": "3.52.0",
29
+ "@platformatic/basic": "3.52.0"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@fastify/reply-from": "^12.0.0",
@@ -43,8 +43,8 @@
43
43
  "next": "^16.1.0",
44
44
  "typescript": "^5.5.4",
45
45
  "ws": "^8.18.0",
46
- "@platformatic/gateway": "3.50.0",
47
- "@platformatic/service": "3.50.0"
46
+ "@platformatic/gateway": "3.52.0",
47
+ "@platformatic/service": "3.52.0"
48
48
  },
49
49
  "engines": {
50
50
  "node": ">=22.19.0"
package/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/next/3.50.0.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/next/3.52.0.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic Next.js Config",
5
5
  "type": "object",
@@ -184,8 +184,7 @@
184
184
  "type": "object",
185
185
  "properties": {
186
186
  "hostname": {
187
- "type": "string",
188
- "default": "127.0.0.1"
187
+ "type": "string"
189
188
  },
190
189
  "port": {
191
190
  "anyOf": [
@@ -1024,8 +1023,7 @@
1024
1023
  "type": "object",
1025
1024
  "properties": {
1026
1025
  "hostname": {
1027
- "type": "string",
1028
- "default": "127.0.0.1"
1026
+ "type": "string"
1029
1027
  },
1030
1028
  "port": {
1031
1029
  "anyOf": [