@platformatic/astro 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 +1 -0
- package/lib/capability.js +3 -5
- package/package.json +5 -5
- package/schema.json +9 -1
package/config.d.ts
CHANGED
package/lib/capability.js
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
importFile,
|
|
11
11
|
resolvePackage
|
|
12
12
|
} from '@platformatic/basic'
|
|
13
|
-
import { ensureLoggableError
|
|
13
|
+
import { ensureLoggableError } from '@platformatic/foundation'
|
|
14
14
|
import fastify from 'fastify'
|
|
15
15
|
import { existsSync } from 'node:fs'
|
|
16
16
|
import { readFile, writeFile } from 'node:fs/promises'
|
|
@@ -51,6 +51,8 @@ export class AstroCapability extends BaseCapability {
|
|
|
51
51
|
return this.url
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
await super._start({ listen })
|
|
55
|
+
|
|
54
56
|
if (this.isProduction) {
|
|
55
57
|
await this.#startProduction(listen)
|
|
56
58
|
} else {
|
|
@@ -249,10 +251,6 @@ export class AstroCapability extends BaseCapability {
|
|
|
249
251
|
const serverOptions = this.serverConfig
|
|
250
252
|
const listenOptions = { host: serverOptions?.hostname || '127.0.0.1', port: serverOptions?.port || 0 }
|
|
251
253
|
|
|
252
|
-
if (this.isProduction && features.node.reusePort) {
|
|
253
|
-
listenOptions.reusePort = true
|
|
254
|
-
}
|
|
255
|
-
|
|
256
254
|
await this.#app.listen(listenOptions)
|
|
257
255
|
this.url = getServerUrl(this.#app.server)
|
|
258
256
|
return this.url
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/astro",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.16.0",
|
|
4
4
|
"description": "Platformatic Astro Capability",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"@fastify/static": "^8.0.0",
|
|
20
20
|
"fastify": "^5.0.0",
|
|
21
21
|
"semver": "^7.6.3",
|
|
22
|
-
"@platformatic/
|
|
23
|
-
"@platformatic/
|
|
22
|
+
"@platformatic/foundation": "3.16.0",
|
|
23
|
+
"@platformatic/basic": "3.16.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@astrojs/node": "^9.2.0",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"typescript": "^5.5.4",
|
|
35
35
|
"vite": "^5.4.4",
|
|
36
36
|
"ws": "^8.18.0",
|
|
37
|
-
"@platformatic/gateway": "3.
|
|
38
|
-
"@platformatic/service": "3.
|
|
37
|
+
"@platformatic/gateway": "3.16.0",
|
|
38
|
+
"@platformatic/service": "3.16.0"
|
|
39
39
|
},
|
|
40
40
|
"engines": {
|
|
41
41
|
"node": ">=22.19.0"
|
package/schema.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://schemas.platformatic.dev/@platformatic/astro/3.
|
|
2
|
+
"$id": "https://schemas.platformatic.dev/@platformatic/astro/3.16.0.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"title": "Platformatic Astro 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",
|