@platformatic/next 2.0.0-alpha.10

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/schema.json ADDED
@@ -0,0 +1,543 @@
1
+ {
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/next/2.0.0-alpha.10.json",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "title": "Platformatic Next.js Stackable",
5
+ "type": "object",
6
+ "properties": {
7
+ "$schema": {
8
+ "type": "string"
9
+ },
10
+ "server": {
11
+ "type": "object",
12
+ "properties": {
13
+ "hostname": {
14
+ "type": "string"
15
+ },
16
+ "port": {
17
+ "anyOf": [
18
+ {
19
+ "type": "integer"
20
+ },
21
+ {
22
+ "type": "string"
23
+ }
24
+ ]
25
+ },
26
+ "pluginTimeout": {
27
+ "type": "integer"
28
+ },
29
+ "healthCheck": {
30
+ "anyOf": [
31
+ {
32
+ "type": "boolean"
33
+ },
34
+ {
35
+ "type": "object",
36
+ "properties": {
37
+ "enabled": {
38
+ "type": "boolean"
39
+ },
40
+ "interval": {
41
+ "type": "integer"
42
+ }
43
+ },
44
+ "additionalProperties": true
45
+ }
46
+ ]
47
+ },
48
+ "ignoreTrailingSlash": {
49
+ "type": "boolean"
50
+ },
51
+ "ignoreDuplicateSlashes": {
52
+ "type": "boolean"
53
+ },
54
+ "connectionTimeout": {
55
+ "type": "integer"
56
+ },
57
+ "keepAliveTimeout": {
58
+ "type": "integer",
59
+ "default": 5000
60
+ },
61
+ "maxRequestsPerSocket": {
62
+ "type": "integer"
63
+ },
64
+ "forceCloseConnections": {
65
+ "anyOf": [
66
+ {
67
+ "type": "boolean"
68
+ },
69
+ {
70
+ "type": "string",
71
+ "pattern": "^idle$"
72
+ }
73
+ ]
74
+ },
75
+ "requestTimeout": {
76
+ "type": "integer"
77
+ },
78
+ "bodyLimit": {
79
+ "type": "integer"
80
+ },
81
+ "maxParamLength": {
82
+ "type": "integer"
83
+ },
84
+ "disableRequestLogging": {
85
+ "type": "boolean"
86
+ },
87
+ "exposeHeadRoutes": {
88
+ "type": "boolean"
89
+ },
90
+ "logger": {
91
+ "anyOf": [
92
+ {
93
+ "type": "boolean"
94
+ },
95
+ {
96
+ "type": "object",
97
+ "properties": {
98
+ "level": {
99
+ "type": "string"
100
+ },
101
+ "transport": {
102
+ "anyOf": [
103
+ {
104
+ "type": "object",
105
+ "properties": {
106
+ "target": {
107
+ "type": "string",
108
+ "resolveModule": true
109
+ },
110
+ "options": {
111
+ "type": "object"
112
+ }
113
+ },
114
+ "additionalProperties": false
115
+ },
116
+ {
117
+ "type": "object",
118
+ "properties": {
119
+ "targets": {
120
+ "type": "array",
121
+ "items": {
122
+ "type": "object",
123
+ "properties": {
124
+ "target": {
125
+ "type": "string",
126
+ "resolveModule": true
127
+ },
128
+ "options": {
129
+ "type": "object"
130
+ },
131
+ "level": {
132
+ "type": "string"
133
+ },
134
+ "additionalProperties": false
135
+ }
136
+ }
137
+ },
138
+ "options": {
139
+ "type": "object"
140
+ }
141
+ },
142
+ "additionalProperties": false
143
+ }
144
+ ]
145
+ },
146
+ "pipeline": {
147
+ "type": "object",
148
+ "properties": {
149
+ "target": {
150
+ "type": "string",
151
+ "resolveModule": true
152
+ },
153
+ "options": {
154
+ "type": "object"
155
+ }
156
+ },
157
+ "additionalProperties": false
158
+ }
159
+ },
160
+ "additionalProperties": true
161
+ }
162
+ ]
163
+ },
164
+ "loggerInstance": {
165
+ "type": "object"
166
+ },
167
+ "serializerOpts": {
168
+ "type": "object",
169
+ "properties": {
170
+ "schema": {
171
+ "type": "object"
172
+ },
173
+ "ajv": {
174
+ "type": "object"
175
+ },
176
+ "rounding": {
177
+ "type": "string",
178
+ "enum": [
179
+ "floor",
180
+ "ceil",
181
+ "round",
182
+ "trunc"
183
+ ],
184
+ "default": "trunc"
185
+ },
186
+ "debugMode": {
187
+ "type": "boolean"
188
+ },
189
+ "mode": {
190
+ "type": "string",
191
+ "enum": [
192
+ "debug",
193
+ "standalone"
194
+ ]
195
+ },
196
+ "largeArraySize": {
197
+ "anyOf": [
198
+ {
199
+ "type": "integer"
200
+ },
201
+ {
202
+ "type": "string"
203
+ }
204
+ ],
205
+ "default": 20000
206
+ },
207
+ "largeArrayMechanism": {
208
+ "type": "string",
209
+ "enum": [
210
+ "default",
211
+ "json-stringify"
212
+ ],
213
+ "default": "default"
214
+ }
215
+ }
216
+ },
217
+ "caseSensitive": {
218
+ "type": "boolean"
219
+ },
220
+ "requestIdHeader": {
221
+ "anyOf": [
222
+ {
223
+ "type": "string"
224
+ },
225
+ {
226
+ "type": "boolean",
227
+ "const": false
228
+ }
229
+ ]
230
+ },
231
+ "requestIdLogLabel": {
232
+ "type": "string"
233
+ },
234
+ "jsonShorthand": {
235
+ "type": "boolean"
236
+ },
237
+ "trustProxy": {
238
+ "anyOf": [
239
+ {
240
+ "type": "boolean"
241
+ },
242
+ {
243
+ "type": "string"
244
+ },
245
+ {
246
+ "type": "array",
247
+ "items": {
248
+ "type": "string"
249
+ }
250
+ },
251
+ {
252
+ "type": "integer"
253
+ }
254
+ ]
255
+ },
256
+ "http2": {
257
+ "type": "boolean"
258
+ },
259
+ "https": {
260
+ "type": "object",
261
+ "properties": {
262
+ "allowHTTP1": {
263
+ "type": "boolean"
264
+ },
265
+ "key": {
266
+ "anyOf": [
267
+ {
268
+ "type": "string"
269
+ },
270
+ {
271
+ "type": "object",
272
+ "properties": {
273
+ "path": {
274
+ "type": "string",
275
+ "resolvePath": true
276
+ }
277
+ },
278
+ "additionalProperties": false
279
+ },
280
+ {
281
+ "type": "array",
282
+ "items": {
283
+ "anyOf": [
284
+ {
285
+ "type": "string"
286
+ },
287
+ {
288
+ "type": "object",
289
+ "properties": {
290
+ "path": {
291
+ "type": "string",
292
+ "resolvePath": true
293
+ }
294
+ },
295
+ "additionalProperties": false
296
+ }
297
+ ]
298
+ }
299
+ }
300
+ ]
301
+ },
302
+ "cert": {
303
+ "anyOf": [
304
+ {
305
+ "type": "string"
306
+ },
307
+ {
308
+ "type": "object",
309
+ "properties": {
310
+ "path": {
311
+ "type": "string",
312
+ "resolvePath": true
313
+ }
314
+ },
315
+ "additionalProperties": false
316
+ },
317
+ {
318
+ "type": "array",
319
+ "items": {
320
+ "anyOf": [
321
+ {
322
+ "type": "string"
323
+ },
324
+ {
325
+ "type": "object",
326
+ "properties": {
327
+ "path": {
328
+ "type": "string",
329
+ "resolvePath": true
330
+ }
331
+ },
332
+ "additionalProperties": false
333
+ }
334
+ ]
335
+ }
336
+ }
337
+ ]
338
+ },
339
+ "requestCert": {
340
+ "type": "boolean"
341
+ },
342
+ "rejectUnauthorized": {
343
+ "type": "boolean"
344
+ }
345
+ },
346
+ "additionalProperties": false,
347
+ "required": [
348
+ "key",
349
+ "cert"
350
+ ]
351
+ },
352
+ "cors": {
353
+ "type": "object",
354
+ "$comment": "See https://github.com/fastify/fastify-cors",
355
+ "properties": {
356
+ "origin": {
357
+ "anyOf": [
358
+ {
359
+ "type": "boolean"
360
+ },
361
+ {
362
+ "type": "string"
363
+ },
364
+ {
365
+ "type": "array",
366
+ "items": {
367
+ "anyOf": [
368
+ {
369
+ "type": "string"
370
+ },
371
+ {
372
+ "type": "object",
373
+ "properties": {
374
+ "regexp": {
375
+ "type": "string"
376
+ }
377
+ },
378
+ "required": [
379
+ "regexp"
380
+ ]
381
+ }
382
+ ]
383
+ }
384
+ },
385
+ {
386
+ "type": "object",
387
+ "properties": {
388
+ "regexp": {
389
+ "type": "string"
390
+ }
391
+ },
392
+ "required": [
393
+ "regexp"
394
+ ]
395
+ }
396
+ ]
397
+ },
398
+ "methods": {
399
+ "type": "array",
400
+ "items": {
401
+ "type": "string"
402
+ }
403
+ },
404
+ "allowedHeaders": {
405
+ "type": "string",
406
+ "description": "Comma separated string of allowed headers."
407
+ },
408
+ "exposedHeaders": {
409
+ "anyOf": [
410
+ {
411
+ "type": "array",
412
+ "items": {
413
+ "type": "string"
414
+ }
415
+ },
416
+ {
417
+ "type": "string",
418
+ "description": "Comma separated string of exposed headers."
419
+ }
420
+ ]
421
+ },
422
+ "credentials": {
423
+ "type": "boolean"
424
+ },
425
+ "maxAge": {
426
+ "type": "integer"
427
+ },
428
+ "preflightContinue": {
429
+ "type": "boolean",
430
+ "default": false
431
+ },
432
+ "optionsSuccessStatus": {
433
+ "type": "integer",
434
+ "default": 204
435
+ },
436
+ "preflight": {
437
+ "type": "boolean",
438
+ "default": true
439
+ },
440
+ "strictPreflight": {
441
+ "type": "boolean",
442
+ "default": true
443
+ },
444
+ "hideOptionsRoute": {
445
+ "type": "boolean",
446
+ "default": true
447
+ }
448
+ },
449
+ "additionalProperties": false
450
+ }
451
+ },
452
+ "additionalProperties": false
453
+ },
454
+ "watch": {
455
+ "anyOf": [
456
+ {
457
+ "type": "object",
458
+ "properties": {
459
+ "enabled": {
460
+ "default": true,
461
+ "anyOf": [
462
+ {
463
+ "type": "boolean"
464
+ },
465
+ {
466
+ "type": "string"
467
+ }
468
+ ]
469
+ },
470
+ "allow": {
471
+ "type": "array",
472
+ "items": {
473
+ "type": "string"
474
+ },
475
+ "minItems": 1,
476
+ "nullable": true,
477
+ "default": null
478
+ },
479
+ "ignore": {
480
+ "type": "array",
481
+ "items": {
482
+ "type": "string"
483
+ },
484
+ "nullable": true,
485
+ "default": null
486
+ }
487
+ },
488
+ "additionalProperties": false
489
+ },
490
+ {
491
+ "type": "boolean"
492
+ },
493
+ {
494
+ "type": "string"
495
+ }
496
+ ]
497
+ },
498
+ "application": {
499
+ "type": "object",
500
+ "properties": {
501
+ "basePath": {
502
+ "type": "string"
503
+ },
504
+ "outputDirectory": {
505
+ "type": "string",
506
+ "default": "dist"
507
+ },
508
+ "include": {
509
+ "type": "array",
510
+ "items": {
511
+ "type": "string"
512
+ },
513
+ "default": [
514
+ "dist"
515
+ ]
516
+ },
517
+ "commands": {
518
+ "type": "object",
519
+ "properties": {
520
+ "install": {
521
+ "type": "string",
522
+ "default": "npm ci --omit-dev"
523
+ },
524
+ "build": {
525
+ "type": "string"
526
+ },
527
+ "development": {
528
+ "type": "string"
529
+ },
530
+ "production": {
531
+ "type": "string"
532
+ }
533
+ },
534
+ "default": {},
535
+ "additionalProperties": false
536
+ }
537
+ },
538
+ "additionalProperties": false,
539
+ "default": {}
540
+ }
541
+ },
542
+ "additionalProperties": false
543
+ }