@platformatic/next 2.25.0 → 2.26.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.
Files changed (3) hide show
  1. package/index.js +5 -12
  2. package/package.json +6 -6
  3. package/schema.json +1 -1
package/index.js CHANGED
@@ -104,7 +104,7 @@ export class NextStackable extends BaseStackable {
104
104
  command = ['node', pathResolve(this.#next, './dist/bin/next'), 'build', this.root]
105
105
  }
106
106
 
107
- return this.buildWithCommand(command, this.#basePath, loader, this.#getChildManagerScripts())
107
+ return this.buildWithCommand(command, this.#basePath, { loader, scripts: this.#getChildManagerScripts() })
108
108
  }
109
109
 
110
110
  /* c8 ignore next 5 */
@@ -143,21 +143,14 @@ export class NextStackable extends BaseStackable {
143
143
  port: port || 0
144
144
  }
145
145
 
146
+ const context = await this.getChildManagerContext(this.#basePath)
147
+
146
148
  this.childManager = new ChildManager({
147
149
  loader: loaderUrl,
148
150
  context: {
149
- config: this.configManager.current,
150
- serviceId: this.serviceId,
151
- workerId: this.workerId,
152
- // Always use URL to avoid serialization problem in Windows
153
- root: pathToFileURL(this.root).toString(),
154
- basePath: this.#basePath,
155
- logLevel: this.logger.level,
151
+ ...context,
156
152
  port: false,
157
- isEntrypoint: this.isEntrypoint,
158
- runtimeBasePath: this.runtimeConfig.basePath,
159
- wantsAbsoluteUrls: true,
160
- telemetryConfig: this.telemetryConfig
153
+ wantsAbsoluteUrls: true
161
154
  },
162
155
  scripts: this.#getChildManagerScripts()
163
156
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/next",
3
- "version": "2.25.0",
3
+ "version": "2.26.0",
4
4
  "description": "Platformatic Next.js Stackable",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -23,9 +23,9 @@
23
23
  "iovalkey": "^0.2.1",
24
24
  "msgpackr": "^1.11.2",
25
25
  "semver": "^7.6.3",
26
- "@platformatic/basic": "2.25.0",
27
- "@platformatic/utils": "2.25.0",
28
- "@platformatic/config": "2.25.0"
26
+ "@platformatic/basic": "2.26.0",
27
+ "@platformatic/utils": "2.26.0",
28
+ "@platformatic/config": "2.26.0"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@fastify/reply-from": "^11.0.0",
@@ -41,8 +41,8 @@
41
41
  "react-dom": "^18.3.1",
42
42
  "typescript": "^5.5.4",
43
43
  "ws": "^8.18.0",
44
- "@platformatic/composer": "2.25.0",
45
- "@platformatic/service": "2.25.0"
44
+ "@platformatic/composer": "2.26.0",
45
+ "@platformatic/service": "2.26.0"
46
46
  },
47
47
  "scripts": {
48
48
  "test": "npm run lint && borp --concurrency=1 --no-timeout",
package/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/next/2.25.0.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/next/2.26.0.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic Next.js Stackable",
5
5
  "type": "object",