@platformatic/astro 3.23.0 → 3.24.0-alpha0
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 +0 -8
- package/lib/capability.js +2 -7
- package/package.json +5 -5
- package/schema.json +1 -9
package/config.d.ts
CHANGED
|
@@ -60,10 +60,6 @@ export interface PlatformaticAstroConfig {
|
|
|
60
60
|
server?: {
|
|
61
61
|
hostname?: string;
|
|
62
62
|
port?: number | string;
|
|
63
|
-
/**
|
|
64
|
-
* The maximum length of the queue of pending connections
|
|
65
|
-
*/
|
|
66
|
-
backlog?: number;
|
|
67
63
|
http2?: boolean;
|
|
68
64
|
https?: {
|
|
69
65
|
allowHTTP1?: boolean;
|
|
@@ -189,10 +185,6 @@ export interface PlatformaticAstroConfig {
|
|
|
189
185
|
server?: {
|
|
190
186
|
hostname?: string;
|
|
191
187
|
port?: number | string;
|
|
192
|
-
/**
|
|
193
|
-
* The maximum length of the queue of pending connections
|
|
194
|
-
*/
|
|
195
|
-
backlog?: number;
|
|
196
188
|
http2?: boolean;
|
|
197
189
|
https?: {
|
|
198
190
|
allowHTTP1?: boolean;
|
package/lib/capability.js
CHANGED
|
@@ -177,7 +177,7 @@ export class AstroCapability extends BaseCapability {
|
|
|
177
177
|
}
|
|
178
178
|
|
|
179
179
|
// Prepare options
|
|
180
|
-
const { hostname, port
|
|
180
|
+
const { hostname, port } = this.serverConfig ?? {}
|
|
181
181
|
const configFile = config.astro.configFile // Note: Astro expect this to be a relative path to the root
|
|
182
182
|
|
|
183
183
|
const serverOptions = {
|
|
@@ -188,8 +188,7 @@ export class AstroCapability extends BaseCapability {
|
|
|
188
188
|
// Require Astro
|
|
189
189
|
const serverPromise = createServerListener(
|
|
190
190
|
(this.isEntrypoint ? serverOptions?.port : undefined) ?? true,
|
|
191
|
-
(this.isEntrypoint ? serverOptions?.hostname : undefined) ?? true
|
|
192
|
-
typeof backlog === 'number' ? { backlog } : {}
|
|
191
|
+
(this.isEntrypoint ? serverOptions?.hostname : undefined) ?? true
|
|
193
192
|
)
|
|
194
193
|
const { dev } = await importFile(resolve(this.#astro, 'dist/core/index.js'))
|
|
195
194
|
|
|
@@ -252,10 +251,6 @@ export class AstroCapability extends BaseCapability {
|
|
|
252
251
|
const serverOptions = this.serverConfig
|
|
253
252
|
const listenOptions = { host: serverOptions?.hostname || '127.0.0.1', port: serverOptions?.port || 0 }
|
|
254
253
|
|
|
255
|
-
if (typeof serverOptions?.backlog === 'number') {
|
|
256
|
-
createServerListener(false, false, { backlog: serverOptions.backlog })
|
|
257
|
-
}
|
|
258
|
-
|
|
259
254
|
await this.#app.listen(listenOptions)
|
|
260
255
|
this.url = getServerUrl(this.#app.server)
|
|
261
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.24.0-alpha0",
|
|
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/basic": "3.24.0-alpha0",
|
|
23
|
+
"@platformatic/foundation": "3.24.0-alpha0"
|
|
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/
|
|
38
|
-
"@platformatic/
|
|
37
|
+
"@platformatic/service": "3.24.0-alpha0",
|
|
38
|
+
"@platformatic/gateway": "3.24.0-alpha0"
|
|
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.24.0-alpha0.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"title": "Platformatic Astro Config",
|
|
5
5
|
"type": "object",
|
|
@@ -178,10 +178,6 @@
|
|
|
178
178
|
}
|
|
179
179
|
]
|
|
180
180
|
},
|
|
181
|
-
"backlog": {
|
|
182
|
-
"type": "integer",
|
|
183
|
-
"description": "The maximum length of the queue of pending connections"
|
|
184
|
-
},
|
|
185
181
|
"http2": {
|
|
186
182
|
"type": "boolean"
|
|
187
183
|
},
|
|
@@ -911,10 +907,6 @@
|
|
|
911
907
|
}
|
|
912
908
|
]
|
|
913
909
|
},
|
|
914
|
-
"backlog": {
|
|
915
|
-
"type": "integer",
|
|
916
|
-
"description": "The maximum length of the queue of pending connections"
|
|
917
|
-
},
|
|
918
910
|
"http2": {
|
|
919
911
|
"type": "boolean"
|
|
920
912
|
},
|