@platformatic/next 3.41.0 → 3.43.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
@@ -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
@@ -225,7 +225,7 @@ export class NextCapability extends BaseCapability {
225
225
  await this.#startDevelopmentNext(serverOptions)
226
226
 
227
227
  const [url, clientWs] = await promise
228
- this.url = url
228
+ this.url = this._getEntrypointUrl(url)
229
229
  this.clientWs = clientWs
230
230
  }
231
231
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/next",
3
- "version": "3.41.0",
3
+ "version": "3.43.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.41.0",
29
- "@platformatic/foundation": "3.41.0"
28
+ "@platformatic/basic": "3.43.0",
29
+ "@platformatic/foundation": "3.43.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.41.0",
46
- "@platformatic/service": "3.41.0"
45
+ "@platformatic/gateway": "3.43.0",
46
+ "@platformatic/service": "3.43.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.41.0.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/next/3.43.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