@platformatic/next 3.0.0-rc.2 → 3.0.1
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/lib/capability.js +10 -2
- package/package.json +5 -5
- package/schema.json +1 -1
package/lib/capability.js
CHANGED
|
@@ -83,7 +83,7 @@ export class NextCapability extends BaseCapability {
|
|
|
83
83
|
|
|
84
84
|
globalThis.platformatic.events.emit('plt:next:close')
|
|
85
85
|
|
|
86
|
-
if (this.isProduction) {
|
|
86
|
+
if (this.isProduction && this.#server) {
|
|
87
87
|
await new Promise((resolve, reject) => {
|
|
88
88
|
this.#server.close(error => {
|
|
89
89
|
/* c8 ignore next 3 */
|
|
@@ -96,7 +96,7 @@ export class NextCapability extends BaseCapability {
|
|
|
96
96
|
})
|
|
97
97
|
|
|
98
98
|
await this.childManager.close()
|
|
99
|
-
} else {
|
|
99
|
+
} else if (this.#child) {
|
|
100
100
|
const exitPromise = once(this.#child, 'exit')
|
|
101
101
|
await this.childManager.close()
|
|
102
102
|
process.kill(this.#child.pid, 'SIGKILL')
|
|
@@ -157,6 +157,14 @@ export class NextCapability extends BaseCapability {
|
|
|
157
157
|
return { gateway }
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
+
async getChildManagerContext (basePath) {
|
|
161
|
+
const context = await super.getChildManagerContext(basePath)
|
|
162
|
+
|
|
163
|
+
context.exitOnUnhandledErrors = false
|
|
164
|
+
|
|
165
|
+
return context
|
|
166
|
+
}
|
|
167
|
+
|
|
160
168
|
async #startDevelopment () {
|
|
161
169
|
const config = this.config
|
|
162
170
|
const loaderUrl = new URL('./loader.js', import.meta.url)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/next",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1",
|
|
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.0.
|
|
27
|
-
"@platformatic/foundation": "3.0.
|
|
26
|
+
"@platformatic/basic": "3.0.1",
|
|
27
|
+
"@platformatic/foundation": "3.0.1"
|
|
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.0.
|
|
44
|
-
"@platformatic/service": "3.0.
|
|
43
|
+
"@platformatic/gateway": "3.0.1",
|
|
44
|
+
"@platformatic/service": "3.0.1"
|
|
45
45
|
},
|
|
46
46
|
"engines": {
|
|
47
47
|
"node": ">=22.18.0"
|
package/schema.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://schemas.platformatic.dev/@platformatic/next/3.0.
|
|
2
|
+
"$id": "https://schemas.platformatic.dev/@platformatic/next/3.0.1.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"title": "Platformatic Next.js Config",
|
|
5
5
|
"type": "object",
|