@gigadrive/network-config 5.0.0 → 5.1.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/dist/define-config.d.mts +156 -2
- package/dist/define-config.d.ts +156 -2
- package/dist/index.d.mts +483 -80
- package/dist/index.d.ts +483 -80
- package/dist/index.js +1659 -403
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1641 -399
- package/dist/index.mjs.map +1 -1
- package/dist/v4/schema.json +323 -5
- package/package.json +2 -2
- package/src/v4/schema.json +323 -5
package/dist/define-config.d.mts
CHANGED
|
@@ -37,6 +37,14 @@ type Runtime = (typeof RUNTIME_DEFINITIONS)[number];
|
|
|
37
37
|
|
|
38
38
|
type UpstashAWSRegion = 'us-east-1' | 'us-east-2' | 'us-west-1' | 'us-west-2' | 'eu-central-1' | 'eu-west-1' | 'eu-west-2' | 'sa-east-1' | 'ap-south-1' | 'ap-northeast-1' | 'ap-southeast-1' | 'ap-southeast-2';
|
|
39
39
|
type NeonAWSRegion = 'us-east-1' | 'us-east-2' | 'us-west-2' | 'ap-southeast-1' | 'ap-southeast-2' | 'eu-central-1' | 'eu-west-2' | 'sa-east-1';
|
|
40
|
+
/**
|
|
41
|
+
* Runtime tag of an entrypoint that runs a container image instead of a
|
|
42
|
+
* managed language runtime. Such an entrypoint always carries a
|
|
43
|
+
* {@link NormalizedConfigEntrypoint.container} spec.
|
|
44
|
+
*/
|
|
45
|
+
declare const CONTAINER_RUNTIME = "docker";
|
|
46
|
+
/** Runtime tag of a container entrypoint. */
|
|
47
|
+
type ContainerRuntime = typeof CONTAINER_RUNTIME;
|
|
40
48
|
type NormalizedConfigRouteMethod = 'ANY' | 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'HEAD' | 'OPTIONS';
|
|
41
49
|
type NormalizedConfigRouteMatchRequirements = [] | [
|
|
42
50
|
{
|
|
@@ -153,6 +161,75 @@ interface ConfigV4 extends Config {
|
|
|
153
161
|
env?: Record<string, string>;
|
|
154
162
|
/** Declares managed services to provision for the deployment environment. */
|
|
155
163
|
services?: ConfigV4Services;
|
|
164
|
+
/**
|
|
165
|
+
* Container images to run, keyed by name. A container without `sidecar: true`
|
|
166
|
+
* runs as a function that routes target with `destination: container:<name>`.
|
|
167
|
+
* A sidecar runs next to every function instance and answers at `<name>:<port>`.
|
|
168
|
+
* A name is 1 to 63 lowercase letters, digits, `-` or `_`, starts with a
|
|
169
|
+
* letter (so it never reads as an IP address), and is not `localhost`.
|
|
170
|
+
*
|
|
171
|
+
* @example
|
|
172
|
+
* ```yaml
|
|
173
|
+
* containers:
|
|
174
|
+
* web:
|
|
175
|
+
* build: .
|
|
176
|
+
* port: 3000
|
|
177
|
+
* redis:
|
|
178
|
+
* image: redis:7-alpine
|
|
179
|
+
* sidecar: true
|
|
180
|
+
* ```
|
|
181
|
+
*/
|
|
182
|
+
containers?: Record<string, ConfigV4Container> | null;
|
|
183
|
+
/**
|
|
184
|
+
* Project-relative path of a Compose file whose services are imported as
|
|
185
|
+
* `containers`. Entries in `containers` win over imported services of the
|
|
186
|
+
* same name.
|
|
187
|
+
*/
|
|
188
|
+
compose?: string | null;
|
|
189
|
+
}
|
|
190
|
+
/** One entry of the v4 `containers` map. Exactly one of `image` and `build` is required. */
|
|
191
|
+
interface ConfigV4Container {
|
|
192
|
+
/** Registry image reference, e.g. `redis:7-alpine` or `ghcr.io/acme/api:1.4`. */
|
|
193
|
+
image?: string;
|
|
194
|
+
/** Build context directory, or the full build settings, for a Dockerfile in the repository. */
|
|
195
|
+
build?: string | ConfigV4ContainerBuild;
|
|
196
|
+
/** Run next to every function instance instead of serving routes. Defaults to `false`. */
|
|
197
|
+
sidecar?: boolean;
|
|
198
|
+
/** TCP port the container listens on. Defaults to the image's first exposed port, then 8080. */
|
|
199
|
+
port?: number;
|
|
200
|
+
/** Replaces the image `ENTRYPOINT`. A string is split into words the way Compose splits it. */
|
|
201
|
+
entrypoint?: string | string[];
|
|
202
|
+
/** Replaces the image `CMD`. A string is split into words the way Compose splits it. */
|
|
203
|
+
command?: string | string[];
|
|
204
|
+
/** Environment variables baked into the container, merged over the image `ENV`. */
|
|
205
|
+
env?: Record<string, string>;
|
|
206
|
+
/** Replaces the image `WORKDIR`. Must be absolute. */
|
|
207
|
+
working_dir?: string;
|
|
208
|
+
/**
|
|
209
|
+
* Replaces the image `USER`: a name, a uid, `name:group` or `uid:gid`. A bare
|
|
210
|
+
* uid may be written as a number. Root is never used: a root image runs as a
|
|
211
|
+
* dedicated non-root user.
|
|
212
|
+
*/
|
|
213
|
+
user?: string | number;
|
|
214
|
+
/** Memory in MB, a whole number from 128 to 3009. Defaults to 512 for a container function and 256 for a sidecar. */
|
|
215
|
+
memory?: number;
|
|
216
|
+
/** Maximum lifetime of one request, in seconds. Container functions only. */
|
|
217
|
+
max_duration?: number;
|
|
218
|
+
/** Stream responses. Defaults to `true`. Container functions only. */
|
|
219
|
+
streaming?: boolean;
|
|
220
|
+
/** Run on a timer, like a function `schedule`. Container functions only. */
|
|
221
|
+
schedule?: string;
|
|
222
|
+
}
|
|
223
|
+
/** Dockerfile build settings for a container. */
|
|
224
|
+
interface ConfigV4ContainerBuild {
|
|
225
|
+
/** Project-relative build context. Defaults to `.`. */
|
|
226
|
+
context?: string;
|
|
227
|
+
/** Dockerfile path relative to the context. Defaults to `Dockerfile`. */
|
|
228
|
+
dockerfile?: string;
|
|
229
|
+
/** Build stage to stop at. */
|
|
230
|
+
target?: string;
|
|
231
|
+
/** Build arguments. */
|
|
232
|
+
args?: Record<string, string>;
|
|
156
233
|
}
|
|
157
234
|
interface ConfigV4Service {
|
|
158
235
|
}
|
|
@@ -200,6 +277,75 @@ interface ConfigV4Services {
|
|
|
200
277
|
postgres?: ConfigV4ServicePostgres | null;
|
|
201
278
|
/** Declarative File Storage buckets for the deployment environment. */
|
|
202
279
|
storage?: ConfigV4ServiceStorage;
|
|
280
|
+
/**
|
|
281
|
+
* Queues for the deployment environment, keyed by name. `null` declares a
|
|
282
|
+
* pull queue with default settings.
|
|
283
|
+
*
|
|
284
|
+
* @example
|
|
285
|
+
* ```yaml
|
|
286
|
+
* services:
|
|
287
|
+
* queues:
|
|
288
|
+
* emails:
|
|
289
|
+
* consumer: /api/queues/emails
|
|
290
|
+
* maxAttempts: 5
|
|
291
|
+
* schedules:
|
|
292
|
+
* daily-digest:
|
|
293
|
+
* cron: '0 8 * * MON-FRI'
|
|
294
|
+
* timezone: Europe/Berlin
|
|
295
|
+
* body: { kind: digest }
|
|
296
|
+
* jobs: null
|
|
297
|
+
* ```
|
|
298
|
+
*/
|
|
299
|
+
queues?: Record<string, ConfigV4Queue | null>;
|
|
300
|
+
}
|
|
301
|
+
/** A duration in seconds, or a string such as `30s`, `10m`, `1.5h` or `4d`. */
|
|
302
|
+
type ConfigV4QueueDuration = number | `${number}${'s' | 'm' | 'h' | 'd'}`;
|
|
303
|
+
/** Settings for a declaratively provisioned queue. Omitted settings keep the platform defaults. */
|
|
304
|
+
interface ConfigV4Queue {
|
|
305
|
+
/**
|
|
306
|
+
* Deployment-relative path that receives each message as a signed POST, for
|
|
307
|
+
* example `/api/queues/emails`. Omit it for a pull queue.
|
|
308
|
+
*/
|
|
309
|
+
consumer?: string | null;
|
|
310
|
+
/** How long a push delivery may run, or how long a received message stays leased. Defaults to 60 seconds. */
|
|
311
|
+
visibilityTimeout?: ConfigV4QueueDuration;
|
|
312
|
+
/** How long an undelivered message is kept. Defaults to 4 days, at most 14 days. */
|
|
313
|
+
retention?: ConfigV4QueueDuration;
|
|
314
|
+
/** Deliveries per message before it moves to the dead-letter list. Defaults to 10. */
|
|
315
|
+
maxAttempts?: number;
|
|
316
|
+
/** Exponential backoff between failed deliveries. Defaults to 5 seconds up to 15 minutes. */
|
|
317
|
+
retryBackoff?: {
|
|
318
|
+
min?: ConfigV4QueueDuration;
|
|
319
|
+
max?: ConfigV4QueueDuration;
|
|
320
|
+
};
|
|
321
|
+
/** How long a deduplication key is remembered. Defaults to 24 hours. */
|
|
322
|
+
deduplicationWindow?: ConfigV4QueueDuration;
|
|
323
|
+
/** Most push deliveries in flight at once. Defaults to 100. */
|
|
324
|
+
concurrency?: number | null;
|
|
325
|
+
/** Most deliveries started per period. The period defaults to one second. */
|
|
326
|
+
rateLimit?: {
|
|
327
|
+
count: number;
|
|
328
|
+
period?: ConfigV4QueueDuration;
|
|
329
|
+
} | null;
|
|
330
|
+
/** Keep messages that run out of attempts for inspection and redrive. Defaults to `true`. */
|
|
331
|
+
deadLetter?: boolean;
|
|
332
|
+
/** Cron schedules that send a message into this queue, keyed by schedule name. */
|
|
333
|
+
schedules?: Record<string, ConfigV4QueueSchedule>;
|
|
334
|
+
}
|
|
335
|
+
/** A recurring send into a queue. */
|
|
336
|
+
interface ConfigV4QueueSchedule {
|
|
337
|
+
/** Five-field cron expression, or a macro such as `@hourly`. */
|
|
338
|
+
cron: string;
|
|
339
|
+
/** IANA time zone the expression is evaluated in. Defaults to `UTC`. */
|
|
340
|
+
timezone?: string;
|
|
341
|
+
/** Message body. Strings are sent as is; any other value is serialized as JSON. */
|
|
342
|
+
body?: unknown;
|
|
343
|
+
/** Content type of the body. Defaults to `text/plain` for a string body and `application/json` otherwise. */
|
|
344
|
+
contentType?: string;
|
|
345
|
+
/** Headers delivered with every message from this schedule. */
|
|
346
|
+
headers?: Record<string, string>;
|
|
347
|
+
/** Set to `false` to keep the schedule without sending. Defaults to `true`. */
|
|
348
|
+
enabled?: boolean;
|
|
203
349
|
}
|
|
204
350
|
/** Declarative File Storage configuration for one deployment environment. */
|
|
205
351
|
interface ConfigV4ServiceStorage extends ConfigV4Service {
|
|
@@ -241,9 +387,17 @@ interface ConfigV4FunctionSettings {
|
|
|
241
387
|
*/
|
|
242
388
|
max_duration?: number;
|
|
243
389
|
/**
|
|
244
|
-
* The runtime to use for the function.
|
|
390
|
+
* The runtime to use for the function. `docker` builds the matched file as a
|
|
391
|
+
* Dockerfile, with its directory as the build context, and runs the image as
|
|
392
|
+
* the function. Routes target it by the Dockerfile's path, like any other
|
|
393
|
+
* function file.
|
|
394
|
+
*/
|
|
395
|
+
runtime?: Runtime | ContainerRuntime;
|
|
396
|
+
/**
|
|
397
|
+
* TCP port the image listens on. Only for `runtime: docker`. Defaults to the
|
|
398
|
+
* image's first exposed port, then 8080.
|
|
245
399
|
*/
|
|
246
|
-
|
|
400
|
+
port?: number;
|
|
247
401
|
/**
|
|
248
402
|
* Enable function response streaming. When omitted, Node and Bun runtimes stream by default.
|
|
249
403
|
*/
|
package/dist/define-config.d.ts
CHANGED
|
@@ -37,6 +37,14 @@ type Runtime = (typeof RUNTIME_DEFINITIONS)[number];
|
|
|
37
37
|
|
|
38
38
|
type UpstashAWSRegion = 'us-east-1' | 'us-east-2' | 'us-west-1' | 'us-west-2' | 'eu-central-1' | 'eu-west-1' | 'eu-west-2' | 'sa-east-1' | 'ap-south-1' | 'ap-northeast-1' | 'ap-southeast-1' | 'ap-southeast-2';
|
|
39
39
|
type NeonAWSRegion = 'us-east-1' | 'us-east-2' | 'us-west-2' | 'ap-southeast-1' | 'ap-southeast-2' | 'eu-central-1' | 'eu-west-2' | 'sa-east-1';
|
|
40
|
+
/**
|
|
41
|
+
* Runtime tag of an entrypoint that runs a container image instead of a
|
|
42
|
+
* managed language runtime. Such an entrypoint always carries a
|
|
43
|
+
* {@link NormalizedConfigEntrypoint.container} spec.
|
|
44
|
+
*/
|
|
45
|
+
declare const CONTAINER_RUNTIME = "docker";
|
|
46
|
+
/** Runtime tag of a container entrypoint. */
|
|
47
|
+
type ContainerRuntime = typeof CONTAINER_RUNTIME;
|
|
40
48
|
type NormalizedConfigRouteMethod = 'ANY' | 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'HEAD' | 'OPTIONS';
|
|
41
49
|
type NormalizedConfigRouteMatchRequirements = [] | [
|
|
42
50
|
{
|
|
@@ -153,6 +161,75 @@ interface ConfigV4 extends Config {
|
|
|
153
161
|
env?: Record<string, string>;
|
|
154
162
|
/** Declares managed services to provision for the deployment environment. */
|
|
155
163
|
services?: ConfigV4Services;
|
|
164
|
+
/**
|
|
165
|
+
* Container images to run, keyed by name. A container without `sidecar: true`
|
|
166
|
+
* runs as a function that routes target with `destination: container:<name>`.
|
|
167
|
+
* A sidecar runs next to every function instance and answers at `<name>:<port>`.
|
|
168
|
+
* A name is 1 to 63 lowercase letters, digits, `-` or `_`, starts with a
|
|
169
|
+
* letter (so it never reads as an IP address), and is not `localhost`.
|
|
170
|
+
*
|
|
171
|
+
* @example
|
|
172
|
+
* ```yaml
|
|
173
|
+
* containers:
|
|
174
|
+
* web:
|
|
175
|
+
* build: .
|
|
176
|
+
* port: 3000
|
|
177
|
+
* redis:
|
|
178
|
+
* image: redis:7-alpine
|
|
179
|
+
* sidecar: true
|
|
180
|
+
* ```
|
|
181
|
+
*/
|
|
182
|
+
containers?: Record<string, ConfigV4Container> | null;
|
|
183
|
+
/**
|
|
184
|
+
* Project-relative path of a Compose file whose services are imported as
|
|
185
|
+
* `containers`. Entries in `containers` win over imported services of the
|
|
186
|
+
* same name.
|
|
187
|
+
*/
|
|
188
|
+
compose?: string | null;
|
|
189
|
+
}
|
|
190
|
+
/** One entry of the v4 `containers` map. Exactly one of `image` and `build` is required. */
|
|
191
|
+
interface ConfigV4Container {
|
|
192
|
+
/** Registry image reference, e.g. `redis:7-alpine` or `ghcr.io/acme/api:1.4`. */
|
|
193
|
+
image?: string;
|
|
194
|
+
/** Build context directory, or the full build settings, for a Dockerfile in the repository. */
|
|
195
|
+
build?: string | ConfigV4ContainerBuild;
|
|
196
|
+
/** Run next to every function instance instead of serving routes. Defaults to `false`. */
|
|
197
|
+
sidecar?: boolean;
|
|
198
|
+
/** TCP port the container listens on. Defaults to the image's first exposed port, then 8080. */
|
|
199
|
+
port?: number;
|
|
200
|
+
/** Replaces the image `ENTRYPOINT`. A string is split into words the way Compose splits it. */
|
|
201
|
+
entrypoint?: string | string[];
|
|
202
|
+
/** Replaces the image `CMD`. A string is split into words the way Compose splits it. */
|
|
203
|
+
command?: string | string[];
|
|
204
|
+
/** Environment variables baked into the container, merged over the image `ENV`. */
|
|
205
|
+
env?: Record<string, string>;
|
|
206
|
+
/** Replaces the image `WORKDIR`. Must be absolute. */
|
|
207
|
+
working_dir?: string;
|
|
208
|
+
/**
|
|
209
|
+
* Replaces the image `USER`: a name, a uid, `name:group` or `uid:gid`. A bare
|
|
210
|
+
* uid may be written as a number. Root is never used: a root image runs as a
|
|
211
|
+
* dedicated non-root user.
|
|
212
|
+
*/
|
|
213
|
+
user?: string | number;
|
|
214
|
+
/** Memory in MB, a whole number from 128 to 3009. Defaults to 512 for a container function and 256 for a sidecar. */
|
|
215
|
+
memory?: number;
|
|
216
|
+
/** Maximum lifetime of one request, in seconds. Container functions only. */
|
|
217
|
+
max_duration?: number;
|
|
218
|
+
/** Stream responses. Defaults to `true`. Container functions only. */
|
|
219
|
+
streaming?: boolean;
|
|
220
|
+
/** Run on a timer, like a function `schedule`. Container functions only. */
|
|
221
|
+
schedule?: string;
|
|
222
|
+
}
|
|
223
|
+
/** Dockerfile build settings for a container. */
|
|
224
|
+
interface ConfigV4ContainerBuild {
|
|
225
|
+
/** Project-relative build context. Defaults to `.`. */
|
|
226
|
+
context?: string;
|
|
227
|
+
/** Dockerfile path relative to the context. Defaults to `Dockerfile`. */
|
|
228
|
+
dockerfile?: string;
|
|
229
|
+
/** Build stage to stop at. */
|
|
230
|
+
target?: string;
|
|
231
|
+
/** Build arguments. */
|
|
232
|
+
args?: Record<string, string>;
|
|
156
233
|
}
|
|
157
234
|
interface ConfigV4Service {
|
|
158
235
|
}
|
|
@@ -200,6 +277,75 @@ interface ConfigV4Services {
|
|
|
200
277
|
postgres?: ConfigV4ServicePostgres | null;
|
|
201
278
|
/** Declarative File Storage buckets for the deployment environment. */
|
|
202
279
|
storage?: ConfigV4ServiceStorage;
|
|
280
|
+
/**
|
|
281
|
+
* Queues for the deployment environment, keyed by name. `null` declares a
|
|
282
|
+
* pull queue with default settings.
|
|
283
|
+
*
|
|
284
|
+
* @example
|
|
285
|
+
* ```yaml
|
|
286
|
+
* services:
|
|
287
|
+
* queues:
|
|
288
|
+
* emails:
|
|
289
|
+
* consumer: /api/queues/emails
|
|
290
|
+
* maxAttempts: 5
|
|
291
|
+
* schedules:
|
|
292
|
+
* daily-digest:
|
|
293
|
+
* cron: '0 8 * * MON-FRI'
|
|
294
|
+
* timezone: Europe/Berlin
|
|
295
|
+
* body: { kind: digest }
|
|
296
|
+
* jobs: null
|
|
297
|
+
* ```
|
|
298
|
+
*/
|
|
299
|
+
queues?: Record<string, ConfigV4Queue | null>;
|
|
300
|
+
}
|
|
301
|
+
/** A duration in seconds, or a string such as `30s`, `10m`, `1.5h` or `4d`. */
|
|
302
|
+
type ConfigV4QueueDuration = number | `${number}${'s' | 'm' | 'h' | 'd'}`;
|
|
303
|
+
/** Settings for a declaratively provisioned queue. Omitted settings keep the platform defaults. */
|
|
304
|
+
interface ConfigV4Queue {
|
|
305
|
+
/**
|
|
306
|
+
* Deployment-relative path that receives each message as a signed POST, for
|
|
307
|
+
* example `/api/queues/emails`. Omit it for a pull queue.
|
|
308
|
+
*/
|
|
309
|
+
consumer?: string | null;
|
|
310
|
+
/** How long a push delivery may run, or how long a received message stays leased. Defaults to 60 seconds. */
|
|
311
|
+
visibilityTimeout?: ConfigV4QueueDuration;
|
|
312
|
+
/** How long an undelivered message is kept. Defaults to 4 days, at most 14 days. */
|
|
313
|
+
retention?: ConfigV4QueueDuration;
|
|
314
|
+
/** Deliveries per message before it moves to the dead-letter list. Defaults to 10. */
|
|
315
|
+
maxAttempts?: number;
|
|
316
|
+
/** Exponential backoff between failed deliveries. Defaults to 5 seconds up to 15 minutes. */
|
|
317
|
+
retryBackoff?: {
|
|
318
|
+
min?: ConfigV4QueueDuration;
|
|
319
|
+
max?: ConfigV4QueueDuration;
|
|
320
|
+
};
|
|
321
|
+
/** How long a deduplication key is remembered. Defaults to 24 hours. */
|
|
322
|
+
deduplicationWindow?: ConfigV4QueueDuration;
|
|
323
|
+
/** Most push deliveries in flight at once. Defaults to 100. */
|
|
324
|
+
concurrency?: number | null;
|
|
325
|
+
/** Most deliveries started per period. The period defaults to one second. */
|
|
326
|
+
rateLimit?: {
|
|
327
|
+
count: number;
|
|
328
|
+
period?: ConfigV4QueueDuration;
|
|
329
|
+
} | null;
|
|
330
|
+
/** Keep messages that run out of attempts for inspection and redrive. Defaults to `true`. */
|
|
331
|
+
deadLetter?: boolean;
|
|
332
|
+
/** Cron schedules that send a message into this queue, keyed by schedule name. */
|
|
333
|
+
schedules?: Record<string, ConfigV4QueueSchedule>;
|
|
334
|
+
}
|
|
335
|
+
/** A recurring send into a queue. */
|
|
336
|
+
interface ConfigV4QueueSchedule {
|
|
337
|
+
/** Five-field cron expression, or a macro such as `@hourly`. */
|
|
338
|
+
cron: string;
|
|
339
|
+
/** IANA time zone the expression is evaluated in. Defaults to `UTC`. */
|
|
340
|
+
timezone?: string;
|
|
341
|
+
/** Message body. Strings are sent as is; any other value is serialized as JSON. */
|
|
342
|
+
body?: unknown;
|
|
343
|
+
/** Content type of the body. Defaults to `text/plain` for a string body and `application/json` otherwise. */
|
|
344
|
+
contentType?: string;
|
|
345
|
+
/** Headers delivered with every message from this schedule. */
|
|
346
|
+
headers?: Record<string, string>;
|
|
347
|
+
/** Set to `false` to keep the schedule without sending. Defaults to `true`. */
|
|
348
|
+
enabled?: boolean;
|
|
203
349
|
}
|
|
204
350
|
/** Declarative File Storage configuration for one deployment environment. */
|
|
205
351
|
interface ConfigV4ServiceStorage extends ConfigV4Service {
|
|
@@ -241,9 +387,17 @@ interface ConfigV4FunctionSettings {
|
|
|
241
387
|
*/
|
|
242
388
|
max_duration?: number;
|
|
243
389
|
/**
|
|
244
|
-
* The runtime to use for the function.
|
|
390
|
+
* The runtime to use for the function. `docker` builds the matched file as a
|
|
391
|
+
* Dockerfile, with its directory as the build context, and runs the image as
|
|
392
|
+
* the function. Routes target it by the Dockerfile's path, like any other
|
|
393
|
+
* function file.
|
|
394
|
+
*/
|
|
395
|
+
runtime?: Runtime | ContainerRuntime;
|
|
396
|
+
/**
|
|
397
|
+
* TCP port the image listens on. Only for `runtime: docker`. Defaults to the
|
|
398
|
+
* image's first exposed port, then 8080.
|
|
245
399
|
*/
|
|
246
|
-
|
|
400
|
+
port?: number;
|
|
247
401
|
/**
|
|
248
402
|
* Enable function response streaming. When omitted, Node and Bun runtimes stream by default.
|
|
249
403
|
*/
|