@platformatic/next 4.0.0-new-config.2 → 4.0.0-new-config.5
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 +696 -697
- package/index.d.ts +28 -1
- package/lib/capability.js +5 -6
- package/lib/commands/pack.js +10 -1
- package/lib/config.js +6 -9
- package/lib/create-context-patch.js +10 -6
- package/lib/pack.js +6 -51
- package/lib/schema.js +9 -0
- package/package.json +6 -6
- package/schema.json +77 -43
package/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseCapability, BaseContext, BaseOptions } from '@platformatic/basic'
|
|
1
|
+
import { ApplicationDefinition, BaseCapability, BaseContext, BaseOptions, CapabilityFactoryOptions, ConfigContext, DeferredApplicationDefinition } from '@platformatic/basic'
|
|
2
2
|
import { Configuration, ConfigurationOptions } from '@platformatic/foundation'
|
|
3
3
|
import { JSONSchemaType } from 'ajv'
|
|
4
4
|
import { FastifyError } from 'fastify'
|
|
@@ -6,6 +6,26 @@ import type { PlatformaticNextJsConfig } from './config.d.ts'
|
|
|
6
6
|
|
|
7
7
|
export type { PlatformaticNextJsConfig } from './config.d.ts'
|
|
8
8
|
|
|
9
|
+
/*
|
|
10
|
+
The option types this capability's configuration is built from, generated from the audited schema.
|
|
11
|
+
`NextHttpsOptions` is Next's own and sits next to `AppServerOptions['https']`, which is
|
|
12
|
+
`HttpsOptions`: two adjacent keys spelled almost alike, which is exactly why both have names.
|
|
13
|
+
*/
|
|
14
|
+
export type {
|
|
15
|
+
AppLoggerOptions,
|
|
16
|
+
AppServerOptions,
|
|
17
|
+
ApplicationHealthOptions,
|
|
18
|
+
ApplicationTelemetryOverrides,
|
|
19
|
+
ApplicationWorkersOptions,
|
|
20
|
+
BuildableApplicationOptions,
|
|
21
|
+
HttpsOptions,
|
|
22
|
+
ImageOptimizerOptions,
|
|
23
|
+
NextCacheOptions,
|
|
24
|
+
NextHttpsOptions,
|
|
25
|
+
PermissionsOptions,
|
|
26
|
+
WatchOptions
|
|
27
|
+
} from './config.d.ts'
|
|
28
|
+
|
|
9
29
|
export interface NextContext extends BaseContext {}
|
|
10
30
|
|
|
11
31
|
export type NextConfiguration = Configuration<PlatformaticNextJsConfig>
|
|
@@ -55,3 +75,10 @@ export namespace errors {
|
|
|
55
75
|
export const StandaloneServerNotFound: () => FastifyError
|
|
56
76
|
export const CannotParseStandaloneServer: () => FastifyError
|
|
57
77
|
}
|
|
78
|
+
|
|
79
|
+
export type NextConfigOptions = CapabilityFactoryOptions<PlatformaticNextJsConfig, 'next', never>
|
|
80
|
+
|
|
81
|
+
export declare function next (options?: NextConfigOptions): ApplicationDefinition
|
|
82
|
+
export declare function next (
|
|
83
|
+
callback: (context: ConfigContext) => NextConfigOptions | Promise<NextConfigOptions>
|
|
84
|
+
): DeferredApplicationDefinition
|
package/lib/capability.js
CHANGED
|
@@ -316,10 +316,6 @@ export class NextCapability extends BaseCapability {
|
|
|
316
316
|
|
|
317
317
|
if (command) {
|
|
318
318
|
const childManagerScripts = this.#getChildManagerScripts()
|
|
319
|
-
|
|
320
|
-
if (this.#nextVersion.major < 15 || (this.#nextVersion.major <= 15 && this.#nextVersion.minor < 1)) {
|
|
321
|
-
childManagerScripts.push(new URL('./create-context-patch.js', import.meta.url))
|
|
322
|
-
}
|
|
323
319
|
return this.startWithCommand(command, loaderUrl, childManagerScripts)
|
|
324
320
|
}
|
|
325
321
|
|
|
@@ -345,6 +341,7 @@ export class NextCapability extends BaseCapability {
|
|
|
345
341
|
try {
|
|
346
342
|
updateGlobals({ config: this.config })
|
|
347
343
|
await this.childManager.inject()
|
|
344
|
+
await this.childManager.register()
|
|
348
345
|
const { nextStart } = await importFile(resolvePath(this.#next, './dist/cli/next-start.js'))
|
|
349
346
|
|
|
350
347
|
const { hostname, port } = this.serverConfig ?? {}
|
|
@@ -353,8 +350,6 @@ export class NextCapability extends BaseCapability {
|
|
|
353
350
|
port: port || 0
|
|
354
351
|
}
|
|
355
352
|
|
|
356
|
-
await this.childManager.register()
|
|
357
|
-
|
|
358
353
|
const serverPromise = createServerListener()
|
|
359
354
|
|
|
360
355
|
if (this.#nextVersion.major === 14 && this.#nextVersion.minor < 2) {
|
|
@@ -443,6 +438,10 @@ export class NextCapability extends BaseCapability {
|
|
|
443
438
|
scripts.push(new URL('./loader-next-15.cjs', import.meta.url))
|
|
444
439
|
}
|
|
445
440
|
|
|
441
|
+
if (this.#nextVersion.major < 15 || (this.#nextVersion.major === 15 && this.#nextVersion.minor < 1)) {
|
|
442
|
+
scripts.push(new URL('./create-context-patch.js', import.meta.url))
|
|
443
|
+
}
|
|
444
|
+
|
|
446
445
|
return scripts
|
|
447
446
|
}
|
|
448
447
|
|
package/lib/commands/pack.js
CHANGED
|
@@ -37,7 +37,16 @@ export async function packCommand (logger, configFile, args, context) {
|
|
|
37
37
|
|
|
38
38
|
let config
|
|
39
39
|
try {
|
|
40
|
-
|
|
40
|
+
/*
|
|
41
|
+
v4 hands a command the application's already-resolved configuration as data -- the loader
|
|
42
|
+
evaluated it once, main-side, and validated it against this capability's schema -- so
|
|
43
|
+
`resolved` says the reading is done. A path is still accepted, which is what a caller outside
|
|
44
|
+
a running project supplies, and it is loaded the way a boot loads one.
|
|
45
|
+
*/
|
|
46
|
+
config =
|
|
47
|
+
typeof configFile === 'string'
|
|
48
|
+
? await loadConfiguration(configFile)
|
|
49
|
+
: await loadConfiguration(context.application?.path ?? process.cwd(), configFile, { resolved: true })
|
|
41
50
|
} catch (error) {
|
|
42
51
|
return logFatalError(
|
|
43
52
|
logger,
|
package/lib/config.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { transform as basicTransform,
|
|
2
|
-
import { loadConfiguration as utilsLoadConfiguration } from '@platformatic/foundation'
|
|
1
|
+
import { transform as basicTransform, loadCapabilityConfiguration, validationOptions } from '@platformatic/basic'
|
|
3
2
|
import { schema } from './schema.js'
|
|
4
3
|
|
|
5
4
|
export async function transform (config, schema, options) {
|
|
@@ -14,13 +13,11 @@ export async function transform (config, schema, options) {
|
|
|
14
13
|
}
|
|
15
14
|
|
|
16
15
|
export async function loadConfiguration (configOrRoot, sourceOrConfig, context) {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
return loadCapabilityConfiguration(configOrRoot, sourceOrConfig, context, {
|
|
17
|
+
schema,
|
|
18
|
+
scope: import.meta.filename,
|
|
19
|
+
suffixes: 'application',
|
|
20
20
|
validationOptions,
|
|
21
|
-
transform
|
|
22
|
-
replaceEnv: true,
|
|
23
|
-
root,
|
|
24
|
-
...context
|
|
21
|
+
transform
|
|
25
22
|
})
|
|
26
23
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
3
|
import { createRequire } from 'node:module'
|
|
4
|
-
import { getGlobalDispatcher } from 'undici'
|
|
4
|
+
import { fetch, getGlobalDispatcher } from 'undici'
|
|
5
5
|
|
|
6
6
|
// Next.js runs middlewares in it's own patched vm context. So the global dispatcher in
|
|
7
7
|
// the middleware context is different from an application global dispatcher. This
|
|
@@ -16,12 +16,16 @@ export function patchVmCreateContext () {
|
|
|
16
16
|
const globalDispatcher = getGlobalDispatcher()
|
|
17
17
|
const context = originalCreateContext(contextObject, opts)
|
|
18
18
|
queueMicrotask(() => {
|
|
19
|
-
if (
|
|
19
|
+
if (context.fetch === undefined) return
|
|
20
20
|
|
|
21
|
-
const originalFetch =
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
const originalFetch = context.fetch
|
|
22
|
+
context.fetch = (input, init = {}) => {
|
|
23
|
+
const url = typeof input === 'string' ? input : input?.url
|
|
24
|
+
if (!url?.startsWith('http://') && !url?.startsWith('https://')) {
|
|
25
|
+
return originalFetch(input, init)
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
return fetch(input, { ...init, dispatcher: globalDispatcher })
|
|
25
29
|
}
|
|
26
30
|
})
|
|
27
31
|
return context
|
package/lib/pack.js
CHANGED
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
symlink,
|
|
16
16
|
writeFile
|
|
17
17
|
} from 'node:fs/promises'
|
|
18
|
-
import {
|
|
18
|
+
import { findPackageJSON } from 'node:module'
|
|
19
19
|
import { tmpdir } from 'node:os'
|
|
20
20
|
import { dirname, isAbsolute, relative, resolve as resolvePath } from 'node:path'
|
|
21
21
|
import { version as platformaticVersion } from './schema.js'
|
|
@@ -169,60 +169,15 @@ async function loadPackageFromRoot (root, fallbackName) {
|
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
async function resolvePackageRoot (name, from) {
|
|
172
|
-
const require = createRequire(from)
|
|
173
|
-
|
|
174
172
|
try {
|
|
175
|
-
|
|
176
|
-
return dirname(packageJsonPath)
|
|
173
|
+
return dirname(findPackageJSON(name, from))
|
|
177
174
|
} catch (error) {
|
|
178
|
-
const
|
|
179
|
-
if (
|
|
180
|
-
return
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
try {
|
|
184
|
-
const resolvedEntry = require.resolve(name)
|
|
185
|
-
return await findPackageRoot(dirname(resolvedEntry))
|
|
186
|
-
} catch (resolveError) {
|
|
187
|
-
const workspacePackage = resolveWorkspacePackageRoot(name)
|
|
188
|
-
if (workspacePackage) {
|
|
189
|
-
return workspacePackage
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
throw resolveError
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
function resolvePackageJsonFromSearchPaths (require, name) {
|
|
198
|
-
const searchPaths = require.resolve.paths(name) ?? []
|
|
199
|
-
const packageSegments = name.split('/')
|
|
200
|
-
|
|
201
|
-
for (const searchPath of searchPaths) {
|
|
202
|
-
const candidate = resolvePath(searchPath, ...packageSegments, 'package.json')
|
|
203
|
-
if (existsSync(candidate)) {
|
|
204
|
-
return candidate
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
return null
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
async function findPackageRoot (directory) {
|
|
212
|
-
let current = directory
|
|
213
|
-
|
|
214
|
-
while (true) {
|
|
215
|
-
const candidate = resolvePath(current, 'package.json')
|
|
216
|
-
if (existsSync(candidate)) {
|
|
217
|
-
return current
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
const parent = resolvePath(current, '..')
|
|
221
|
-
if (parent === current) {
|
|
222
|
-
throw new Error(`Cannot determine package root for ${directory}.`)
|
|
175
|
+
const workspacePackage = resolveWorkspacePackageRoot(name)
|
|
176
|
+
if (workspacePackage) {
|
|
177
|
+
return workspacePackage
|
|
223
178
|
}
|
|
224
179
|
|
|
225
|
-
|
|
180
|
+
throw error
|
|
226
181
|
}
|
|
227
182
|
}
|
|
228
183
|
|
package/lib/schema.js
CHANGED
|
@@ -243,6 +243,15 @@ const next = {
|
|
|
243
243
|
additionalProperties: false
|
|
244
244
|
}
|
|
245
245
|
|
|
246
|
+
/*
|
|
247
|
+
The names the generated types carry -- see the table in `foundation/lib/schema.js` for why they
|
|
248
|
+
are assigned rather than written at each site. `https` is Next's own, distinct from `server.https`
|
|
249
|
+
next to it, and the two names are what keeps that adjacency legible.
|
|
250
|
+
*/
|
|
251
|
+
next.properties.https.title = 'NextHttpsOptions'
|
|
252
|
+
next.properties.imageOptimizer.title = 'ImageOptimizerOptions'
|
|
253
|
+
cache.title = 'NextCacheOptions'
|
|
254
|
+
|
|
246
255
|
export const schemaComponents = { next }
|
|
247
256
|
|
|
248
257
|
export const schema = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/next",
|
|
3
|
-
"version": "4.0.0-new-config.
|
|
3
|
+
"version": "4.0.0-new-config.5",
|
|
4
4
|
"description": "Platformatic Next.js Capability",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"light-my-request": "^6.0.0",
|
|
32
32
|
"msgpackr": "^1.11.2",
|
|
33
33
|
"semver": "^7.6.3",
|
|
34
|
-
"@platformatic/basic": "4.0.0-new-config.
|
|
35
|
-
"@platformatic/
|
|
36
|
-
"@platformatic/
|
|
34
|
+
"@platformatic/basic": "4.0.0-new-config.5",
|
|
35
|
+
"@platformatic/foundation": "4.0.0-new-config.5",
|
|
36
|
+
"@platformatic/globals": "4.0.0-new-config.5"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@fastify/reply-from": "^12.0.0",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"next": "^16.1.0",
|
|
51
51
|
"typescript": "~6.0.3",
|
|
52
52
|
"ws": "^8.18.0",
|
|
53
|
-
"@platformatic/
|
|
54
|
-
"@platformatic/
|
|
53
|
+
"@platformatic/service": "4.0.0-new-config.5",
|
|
54
|
+
"@platformatic/gateway": "4.0.0-new-config.5"
|
|
55
55
|
},
|
|
56
56
|
"engines": {
|
|
57
57
|
"node": ">=22.19.0"
|
package/schema.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://schemas.platformatic.dev/@platformatic/next/4.0.0-new-config.
|
|
2
|
+
"$id": "https://schemas.platformatic.dev/@platformatic/next/4.0.0-new-config.5.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"title": "Platformatic Next.js Config",
|
|
5
5
|
"type": "object",
|
|
@@ -178,7 +178,8 @@
|
|
|
178
178
|
}
|
|
179
179
|
},
|
|
180
180
|
"default": {},
|
|
181
|
-
"additionalProperties": true
|
|
181
|
+
"additionalProperties": true,
|
|
182
|
+
"title": "AppLoggerOptions"
|
|
182
183
|
},
|
|
183
184
|
"server": {
|
|
184
185
|
"type": "object",
|
|
@@ -302,10 +303,12 @@
|
|
|
302
303
|
"required": [
|
|
303
304
|
"key",
|
|
304
305
|
"cert"
|
|
305
|
-
]
|
|
306
|
+
],
|
|
307
|
+
"title": "HttpsOptions"
|
|
306
308
|
}
|
|
307
309
|
},
|
|
308
|
-
"additionalProperties": false
|
|
310
|
+
"additionalProperties": false,
|
|
311
|
+
"title": "AppServerOptions"
|
|
309
312
|
},
|
|
310
313
|
"watch": {
|
|
311
314
|
"anyOf": [
|
|
@@ -341,7 +344,8 @@
|
|
|
341
344
|
"default": null
|
|
342
345
|
}
|
|
343
346
|
},
|
|
344
|
-
"additionalProperties": false
|
|
347
|
+
"additionalProperties": false,
|
|
348
|
+
"title": "WatchOptions"
|
|
345
349
|
},
|
|
346
350
|
{
|
|
347
351
|
"type": "boolean"
|
|
@@ -390,9 +394,6 @@
|
|
|
390
394
|
"default": {},
|
|
391
395
|
"additionalProperties": false
|
|
392
396
|
},
|
|
393
|
-
"entrypointPort": {
|
|
394
|
-
"type": "number"
|
|
395
|
-
},
|
|
396
397
|
"changeDirectoryBeforeExecution": {
|
|
397
398
|
"type": "boolean",
|
|
398
399
|
"default": false
|
|
@@ -407,7 +408,8 @@
|
|
|
407
408
|
},
|
|
408
409
|
"additionalProperties": false,
|
|
409
410
|
"required": [],
|
|
410
|
-
"default": {}
|
|
411
|
+
"default": {},
|
|
412
|
+
"title": "BuildableApplicationOptions"
|
|
411
413
|
},
|
|
412
414
|
"runtime": {
|
|
413
415
|
"type": "object",
|
|
@@ -452,7 +454,8 @@
|
|
|
452
454
|
"type": "boolean",
|
|
453
455
|
"default": false
|
|
454
456
|
}
|
|
455
|
-
}
|
|
457
|
+
},
|
|
458
|
+
"title": "ExtensionEntry"
|
|
456
459
|
},
|
|
457
460
|
{
|
|
458
461
|
"type": "array",
|
|
@@ -481,7 +484,8 @@
|
|
|
481
484
|
"type": "boolean",
|
|
482
485
|
"default": false
|
|
483
486
|
}
|
|
484
|
-
}
|
|
487
|
+
},
|
|
488
|
+
"title": "ExtensionEntry"
|
|
485
489
|
}
|
|
486
490
|
]
|
|
487
491
|
}
|
|
@@ -548,6 +552,9 @@
|
|
|
548
552
|
"url": {
|
|
549
553
|
"type": "string"
|
|
550
554
|
},
|
|
555
|
+
"module": {
|
|
556
|
+
"type": "string"
|
|
557
|
+
},
|
|
551
558
|
"gitBranch": {
|
|
552
559
|
"type": "string",
|
|
553
560
|
"default": "main"
|
|
@@ -589,7 +596,8 @@
|
|
|
589
596
|
"minimum": 0,
|
|
590
597
|
"maximum": 1
|
|
591
598
|
}
|
|
592
|
-
}
|
|
599
|
+
},
|
|
600
|
+
"title": "ApplicationWorkersOptions"
|
|
593
601
|
}
|
|
594
602
|
]
|
|
595
603
|
},
|
|
@@ -742,7 +750,8 @@
|
|
|
742
750
|
]
|
|
743
751
|
}
|
|
744
752
|
},
|
|
745
|
-
"additionalProperties": false
|
|
753
|
+
"additionalProperties": false,
|
|
754
|
+
"title": "ApplicationHealthOptions"
|
|
746
755
|
},
|
|
747
756
|
"restartOnError": {
|
|
748
757
|
"description": "Overrides the runtime-level restartOnError for this application. Set to false or 0 to never restart the application when it crashes, a positive number to wait that amount of milliseconds between restarts, or true to use the default delay.",
|
|
@@ -841,14 +850,15 @@
|
|
|
841
850
|
"additionalProperties": false
|
|
842
851
|
}
|
|
843
852
|
},
|
|
844
|
-
"additionalProperties": false
|
|
853
|
+
"additionalProperties": false,
|
|
854
|
+
"title": "PermissionsOptions"
|
|
845
855
|
},
|
|
846
|
-
"
|
|
856
|
+
"tracing": {
|
|
847
857
|
"type": "object",
|
|
848
858
|
"properties": {
|
|
849
859
|
"instrumentations": {
|
|
850
860
|
"type": "array",
|
|
851
|
-
"description": "An array of instrumentations loaded if
|
|
861
|
+
"description": "An array of instrumentations loaded if tracing is enabled",
|
|
852
862
|
"items": {
|
|
853
863
|
"oneOf": [
|
|
854
864
|
{
|
|
@@ -875,7 +885,8 @@
|
|
|
875
885
|
]
|
|
876
886
|
}
|
|
877
887
|
}
|
|
878
|
-
}
|
|
888
|
+
},
|
|
889
|
+
"title": "ApplicationTelemetryOverrides"
|
|
879
890
|
},
|
|
880
891
|
"compileCache": {
|
|
881
892
|
"anyOf": [
|
|
@@ -895,7 +906,8 @@
|
|
|
895
906
|
"description": "Directory to store compile cache. Defaults to .plt/compile-cache in app root"
|
|
896
907
|
}
|
|
897
908
|
},
|
|
898
|
-
"additionalProperties": false
|
|
909
|
+
"additionalProperties": false,
|
|
910
|
+
"title": "CompileCacheOptions"
|
|
899
911
|
}
|
|
900
912
|
]
|
|
901
913
|
},
|
|
@@ -922,7 +934,8 @@
|
|
|
922
934
|
}
|
|
923
935
|
]
|
|
924
936
|
}
|
|
925
|
-
}
|
|
937
|
+
},
|
|
938
|
+
"title": "ApplicationEntry"
|
|
926
939
|
}
|
|
927
940
|
},
|
|
928
941
|
"workers": {
|
|
@@ -979,7 +992,8 @@
|
|
|
979
992
|
"minimum": 0,
|
|
980
993
|
"maximum": 1
|
|
981
994
|
}
|
|
982
|
-
}
|
|
995
|
+
},
|
|
996
|
+
"title": "WorkersOptions"
|
|
983
997
|
}
|
|
984
998
|
]
|
|
985
999
|
},
|
|
@@ -1163,7 +1177,8 @@
|
|
|
1163
1177
|
}
|
|
1164
1178
|
},
|
|
1165
1179
|
"default": {},
|
|
1166
|
-
"additionalProperties": true
|
|
1180
|
+
"additionalProperties": true,
|
|
1181
|
+
"title": "AppLoggerOptions"
|
|
1167
1182
|
},
|
|
1168
1183
|
"reuseTcpPorts": {
|
|
1169
1184
|
"type": "boolean",
|
|
@@ -1235,7 +1250,8 @@
|
|
|
1235
1250
|
"runtime",
|
|
1236
1251
|
"application"
|
|
1237
1252
|
],
|
|
1238
|
-
"additionalProperties": false
|
|
1253
|
+
"additionalProperties": false,
|
|
1254
|
+
"title": "GracefulShutdownOptions"
|
|
1239
1255
|
},
|
|
1240
1256
|
"health": {
|
|
1241
1257
|
"type": "object",
|
|
@@ -1397,7 +1413,8 @@
|
|
|
1397
1413
|
"default": 262144
|
|
1398
1414
|
}
|
|
1399
1415
|
},
|
|
1400
|
-
"additionalProperties": false
|
|
1416
|
+
"additionalProperties": false,
|
|
1417
|
+
"title": "HealthOptions"
|
|
1401
1418
|
},
|
|
1402
1419
|
"healthProbes": {
|
|
1403
1420
|
"anyOf": [
|
|
@@ -1514,7 +1531,8 @@
|
|
|
1514
1531
|
]
|
|
1515
1532
|
}
|
|
1516
1533
|
},
|
|
1517
|
-
"additionalProperties": false
|
|
1534
|
+
"additionalProperties": false,
|
|
1535
|
+
"title": "HealthProbesOptions"
|
|
1518
1536
|
}
|
|
1519
1537
|
],
|
|
1520
1538
|
"default": true
|
|
@@ -1611,7 +1629,8 @@
|
|
|
1611
1629
|
}
|
|
1612
1630
|
]
|
|
1613
1631
|
}
|
|
1614
|
-
}
|
|
1632
|
+
},
|
|
1633
|
+
"title": "UndiciOptions"
|
|
1615
1634
|
},
|
|
1616
1635
|
"httpCache": {
|
|
1617
1636
|
"oneOf": [
|
|
@@ -1667,7 +1686,8 @@
|
|
|
1667
1686
|
"default": "shared",
|
|
1668
1687
|
"description": "Cache type. \"shared\" caches may be shared between users, \"private\" caches are user-specific."
|
|
1669
1688
|
}
|
|
1670
|
-
}
|
|
1689
|
+
},
|
|
1690
|
+
"title": "HttpCacheOptions"
|
|
1671
1691
|
}
|
|
1672
1692
|
]
|
|
1673
1693
|
},
|
|
@@ -1708,7 +1728,8 @@
|
|
|
1708
1728
|
"description": "Custom path for the control socket. If not specified, uses the default platform-specific location."
|
|
1709
1729
|
}
|
|
1710
1730
|
},
|
|
1711
|
-
"additionalProperties": false
|
|
1731
|
+
"additionalProperties": false,
|
|
1732
|
+
"title": "ManagementApiOptions"
|
|
1712
1733
|
}
|
|
1713
1734
|
],
|
|
1714
1735
|
"default": true
|
|
@@ -1861,7 +1882,8 @@
|
|
|
1861
1882
|
"required": [
|
|
1862
1883
|
"key",
|
|
1863
1884
|
"cert"
|
|
1864
|
-
]
|
|
1885
|
+
],
|
|
1886
|
+
"title": "HttpsOptions"
|
|
1865
1887
|
},
|
|
1866
1888
|
"auth": {
|
|
1867
1889
|
"type": "object",
|
|
@@ -2140,11 +2162,13 @@
|
|
|
2140
2162
|
}
|
|
2141
2163
|
}
|
|
2142
2164
|
},
|
|
2143
|
-
"additionalProperties": false
|
|
2165
|
+
"additionalProperties": false,
|
|
2166
|
+
"title": "MetricsOptions"
|
|
2144
2167
|
}
|
|
2145
|
-
]
|
|
2168
|
+
],
|
|
2169
|
+
"default": false
|
|
2146
2170
|
},
|
|
2147
|
-
"
|
|
2171
|
+
"tracing": {
|
|
2148
2172
|
"type": "object",
|
|
2149
2173
|
"properties": {
|
|
2150
2174
|
"enabled": {
|
|
@@ -2315,7 +2339,8 @@
|
|
|
2315
2339
|
"required": [
|
|
2316
2340
|
"applicationName"
|
|
2317
2341
|
],
|
|
2318
|
-
"additionalProperties": false
|
|
2342
|
+
"additionalProperties": false,
|
|
2343
|
+
"title": "TelemetryOptions"
|
|
2319
2344
|
},
|
|
2320
2345
|
"verticalScaler": {
|
|
2321
2346
|
"type": "object",
|
|
@@ -2571,7 +2596,8 @@
|
|
|
2571
2596
|
"description": "Directory to store compile cache. Defaults to .plt/compile-cache in app root"
|
|
2572
2597
|
}
|
|
2573
2598
|
},
|
|
2574
|
-
"additionalProperties": false
|
|
2599
|
+
"additionalProperties": false,
|
|
2600
|
+
"title": "CompileCacheOptions"
|
|
2575
2601
|
}
|
|
2576
2602
|
]
|
|
2577
2603
|
},
|
|
@@ -2615,7 +2641,8 @@
|
|
|
2615
2641
|
"minimum": 0,
|
|
2616
2642
|
"maximum": 1
|
|
2617
2643
|
}
|
|
2618
|
-
}
|
|
2644
|
+
},
|
|
2645
|
+
"title": "ApplicationWorkersOptions"
|
|
2619
2646
|
}
|
|
2620
2647
|
]
|
|
2621
2648
|
},
|
|
@@ -2768,7 +2795,8 @@
|
|
|
2768
2795
|
]
|
|
2769
2796
|
}
|
|
2770
2797
|
},
|
|
2771
|
-
"additionalProperties": false
|
|
2798
|
+
"additionalProperties": false,
|
|
2799
|
+
"title": "ApplicationHealthOptions"
|
|
2772
2800
|
},
|
|
2773
2801
|
"restartOnError": {
|
|
2774
2802
|
"description": "Overrides the runtime-level restartOnError for this application. Set to false or 0 to never restart the application when it crashes, a positive number to wait that amount of milliseconds between restarts, or true to use the default delay.",
|
|
@@ -2860,14 +2888,15 @@
|
|
|
2860
2888
|
"additionalProperties": false
|
|
2861
2889
|
}
|
|
2862
2890
|
},
|
|
2863
|
-
"additionalProperties": false
|
|
2891
|
+
"additionalProperties": false,
|
|
2892
|
+
"title": "PermissionsOptions"
|
|
2864
2893
|
},
|
|
2865
|
-
"
|
|
2894
|
+
"tracing": {
|
|
2866
2895
|
"type": "object",
|
|
2867
2896
|
"properties": {
|
|
2868
2897
|
"instrumentations": {
|
|
2869
2898
|
"type": "array",
|
|
2870
|
-
"description": "An array of instrumentations loaded if
|
|
2899
|
+
"description": "An array of instrumentations loaded if tracing is enabled",
|
|
2871
2900
|
"items": {
|
|
2872
2901
|
"oneOf": [
|
|
2873
2902
|
{
|
|
@@ -2894,7 +2923,8 @@
|
|
|
2894
2923
|
]
|
|
2895
2924
|
}
|
|
2896
2925
|
}
|
|
2897
|
-
}
|
|
2926
|
+
},
|
|
2927
|
+
"title": "ApplicationTelemetryOverrides"
|
|
2898
2928
|
},
|
|
2899
2929
|
"compileCache": {
|
|
2900
2930
|
"anyOf": [
|
|
@@ -2914,7 +2944,8 @@
|
|
|
2914
2944
|
"description": "Directory to store compile cache. Defaults to .plt/compile-cache in app root"
|
|
2915
2945
|
}
|
|
2916
2946
|
},
|
|
2917
|
-
"additionalProperties": false
|
|
2947
|
+
"additionalProperties": false,
|
|
2948
|
+
"title": "CompileCacheOptions"
|
|
2918
2949
|
}
|
|
2919
2950
|
]
|
|
2920
2951
|
}
|
|
@@ -2961,7 +2992,8 @@
|
|
|
2961
2992
|
"type": "string"
|
|
2962
2993
|
}
|
|
2963
2994
|
},
|
|
2964
|
-
"additionalProperties": false
|
|
2995
|
+
"additionalProperties": false,
|
|
2996
|
+
"title": "NextHttpsOptions"
|
|
2965
2997
|
},
|
|
2966
2998
|
"imageOptimizer": {
|
|
2967
2999
|
"type": "object",
|
|
@@ -3088,7 +3120,8 @@
|
|
|
3088
3120
|
"enabled",
|
|
3089
3121
|
"fallback"
|
|
3090
3122
|
],
|
|
3091
|
-
"additionalProperties": false
|
|
3123
|
+
"additionalProperties": false,
|
|
3124
|
+
"title": "ImageOptimizerOptions"
|
|
3092
3125
|
}
|
|
3093
3126
|
},
|
|
3094
3127
|
"default": {},
|
|
@@ -3173,7 +3206,8 @@
|
|
|
3173
3206
|
"adapter",
|
|
3174
3207
|
"url"
|
|
3175
3208
|
],
|
|
3176
|
-
"additionalProperties": false
|
|
3209
|
+
"additionalProperties": false,
|
|
3210
|
+
"title": "NextCacheOptions"
|
|
3177
3211
|
}
|
|
3178
3212
|
},
|
|
3179
3213
|
"additionalProperties": false
|