astro 4.9.2 → 4.10.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/client.d.ts +8 -0
- package/components/Picture.astro +2 -1
- package/config.d.ts +6 -0
- package/config.mjs +1 -0
- package/dist/@types/astro.d.ts +124 -0
- package/dist/assets/utils/proxy.js +1 -1
- package/dist/cli/add/babel.d.ts +1 -1
- package/dist/cli/install-package.d.ts +1 -1
- package/dist/cli/install-package.js +1 -1
- package/dist/config/index.js +2 -2
- package/dist/container/index.d.ts +11 -15
- package/dist/container/index.js +29 -27
- package/dist/container/pipeline.d.ts +1 -0
- package/dist/container/pipeline.js +8 -1
- package/dist/content/types-generator.js +5 -5
- package/dist/content/utils.d.ts +2 -3
- package/dist/content/utils.js +3 -4
- package/dist/content/vite-plugin-content-virtual-mod.d.ts +1 -1
- package/dist/core/app/pipeline.d.ts +2 -1
- package/dist/core/app/pipeline.js +44 -19
- package/dist/core/app/types.d.ts +1 -0
- package/dist/core/base-pipeline.d.ts +15 -3
- package/dist/core/base-pipeline.js +10 -1
- package/dist/core/build/generate.js +14 -4
- package/dist/core/build/pipeline.d.ts +2 -1
- package/dist/core/build/pipeline.js +31 -19
- package/dist/core/build/plugins/plugin-content.js +2 -1
- package/dist/core/build/plugins/plugin-manifest.js +2 -1
- package/dist/core/config/config.js +1 -1
- package/dist/core/config/schema.d.ts +644 -0
- package/dist/core/config/schema.js +5 -1
- package/dist/core/config/settings.js +1 -0
- package/dist/core/constants.d.ts +1 -1
- package/dist/core/constants.js +2 -2
- package/dist/core/create-vite.js +2 -0
- package/dist/core/dev/dev.js +1 -1
- package/dist/core/errors/errors-data.d.ts +61 -1
- package/dist/core/errors/errors-data.js +39 -0
- package/dist/core/logger/core.d.ts +1 -1
- package/dist/core/messages.js +2 -2
- package/dist/core/render-context.d.ts +1 -0
- package/dist/core/render-context.js +74 -57
- package/dist/core/routing/astro-designed-error-pages.d.ts +8 -1
- package/dist/core/routing/astro-designed-error-pages.js +29 -12
- package/dist/env/config.d.ts +9 -0
- package/dist/env/config.js +17 -0
- package/dist/env/constants.d.ts +11 -0
- package/dist/env/constants.js +21 -0
- package/dist/env/runtime.d.ts +6 -0
- package/dist/env/runtime.js +21 -0
- package/dist/env/schema.d.ts +387 -0
- package/dist/env/schema.js +113 -0
- package/dist/env/validators.d.ts +13 -0
- package/dist/env/validators.js +57 -0
- package/dist/env/vite-plugin-env.d.ts +11 -0
- package/dist/env/vite-plugin-env.js +174 -0
- package/dist/integrations/features-validation.js +9 -1
- package/dist/jsx/server.js +2 -1
- package/dist/runtime/server/render/astro/render.js +15 -1
- package/dist/runtime/server/util.js +1 -1
- package/dist/virtual-modules/container.d.ts +16 -0
- package/dist/virtual-modules/container.js +18 -0
- package/dist/virtual-modules/env-setup.d.ts +1 -0
- package/dist/virtual-modules/env-setup.js +4 -0
- package/dist/vite-plugin-astro-server/pipeline.d.ts +3 -2
- package/dist/vite-plugin-astro-server/pipeline.js +34 -20
- package/dist/vite-plugin-astro-server/plugin.js +1 -0
- package/dist/vite-plugin-astro-server/response.d.ts +0 -6
- package/dist/vite-plugin-astro-server/response.js +0 -13
- package/dist/vite-plugin-astro-server/route.js +2 -1
- package/dist/vite-plugin-inject-env-ts/index.js +46 -38
- package/package.json +19 -20
- package/templates/env/module.mjs +18 -0
- package/templates/env/types.d.ts +20 -0
- /package/{content-module.template.mjs → templates/content/module.mjs} +0 -0
- /package/{content-types.template.d.ts → templates/content/types.d.ts} +0 -0
|
@@ -399,6 +399,160 @@ export declare const AstroConfigSchema: z.ZodObject<{
|
|
|
399
399
|
clientPrerender: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
400
400
|
globalRoutePriority: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
401
401
|
rewriting: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
402
|
+
env: z.ZodOptional<z.ZodObject<{
|
|
403
|
+
schema: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
404
|
+
context: z.ZodLiteral<"client">;
|
|
405
|
+
access: z.ZodLiteral<"public">;
|
|
406
|
+
}, "strip", z.ZodTypeAny, {
|
|
407
|
+
context: "client";
|
|
408
|
+
access: "public";
|
|
409
|
+
}, {
|
|
410
|
+
context: "client";
|
|
411
|
+
access: "public";
|
|
412
|
+
}>, z.ZodObject<{
|
|
413
|
+
context: z.ZodLiteral<"server">;
|
|
414
|
+
access: z.ZodLiteral<"public">;
|
|
415
|
+
}, "strip", z.ZodTypeAny, {
|
|
416
|
+
context: "server";
|
|
417
|
+
access: "public";
|
|
418
|
+
}, {
|
|
419
|
+
context: "server";
|
|
420
|
+
access: "public";
|
|
421
|
+
}>, z.ZodObject<{
|
|
422
|
+
context: z.ZodLiteral<"server">;
|
|
423
|
+
access: z.ZodLiteral<"secret">;
|
|
424
|
+
}, "strip", z.ZodTypeAny, {
|
|
425
|
+
context: "server";
|
|
426
|
+
access: "secret";
|
|
427
|
+
}, {
|
|
428
|
+
context: "server";
|
|
429
|
+
access: "secret";
|
|
430
|
+
}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
431
|
+
type: z.ZodLiteral<"string">;
|
|
432
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
433
|
+
default: z.ZodOptional<z.ZodString>;
|
|
434
|
+
}, "strip", z.ZodTypeAny, {
|
|
435
|
+
type: "string";
|
|
436
|
+
default?: string | undefined;
|
|
437
|
+
optional?: boolean | undefined;
|
|
438
|
+
}, {
|
|
439
|
+
type: "string";
|
|
440
|
+
default?: string | undefined;
|
|
441
|
+
optional?: boolean | undefined;
|
|
442
|
+
}>, z.ZodObject<{
|
|
443
|
+
type: z.ZodLiteral<"number">;
|
|
444
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
445
|
+
default: z.ZodOptional<z.ZodNumber>;
|
|
446
|
+
}, "strip", z.ZodTypeAny, {
|
|
447
|
+
type: "number";
|
|
448
|
+
default?: number | undefined;
|
|
449
|
+
optional?: boolean | undefined;
|
|
450
|
+
}, {
|
|
451
|
+
type: "number";
|
|
452
|
+
default?: number | undefined;
|
|
453
|
+
optional?: boolean | undefined;
|
|
454
|
+
}>, z.ZodObject<{
|
|
455
|
+
type: z.ZodLiteral<"boolean">;
|
|
456
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
457
|
+
default: z.ZodOptional<z.ZodBoolean>;
|
|
458
|
+
}, "strip", z.ZodTypeAny, {
|
|
459
|
+
type: "boolean";
|
|
460
|
+
default?: boolean | undefined;
|
|
461
|
+
optional?: boolean | undefined;
|
|
462
|
+
}, {
|
|
463
|
+
type: "boolean";
|
|
464
|
+
default?: boolean | undefined;
|
|
465
|
+
optional?: boolean | undefined;
|
|
466
|
+
}>]>>>, Record<string, ({
|
|
467
|
+
context: "client";
|
|
468
|
+
access: "public";
|
|
469
|
+
} | {
|
|
470
|
+
context: "server";
|
|
471
|
+
access: "public";
|
|
472
|
+
} | {
|
|
473
|
+
context: "server";
|
|
474
|
+
access: "secret";
|
|
475
|
+
}) & ({
|
|
476
|
+
type: "string";
|
|
477
|
+
default?: string | undefined;
|
|
478
|
+
optional?: boolean | undefined;
|
|
479
|
+
} | {
|
|
480
|
+
type: "number";
|
|
481
|
+
default?: number | undefined;
|
|
482
|
+
optional?: boolean | undefined;
|
|
483
|
+
} | {
|
|
484
|
+
type: "boolean";
|
|
485
|
+
default?: boolean | undefined;
|
|
486
|
+
optional?: boolean | undefined;
|
|
487
|
+
})>, Record<string, ({
|
|
488
|
+
context: "client";
|
|
489
|
+
access: "public";
|
|
490
|
+
} | {
|
|
491
|
+
context: "server";
|
|
492
|
+
access: "public";
|
|
493
|
+
} | {
|
|
494
|
+
context: "server";
|
|
495
|
+
access: "secret";
|
|
496
|
+
}) & ({
|
|
497
|
+
type: "string";
|
|
498
|
+
default?: string | undefined;
|
|
499
|
+
optional?: boolean | undefined;
|
|
500
|
+
} | {
|
|
501
|
+
type: "number";
|
|
502
|
+
default?: number | undefined;
|
|
503
|
+
optional?: boolean | undefined;
|
|
504
|
+
} | {
|
|
505
|
+
type: "boolean";
|
|
506
|
+
default?: boolean | undefined;
|
|
507
|
+
optional?: boolean | undefined;
|
|
508
|
+
})>>>;
|
|
509
|
+
}, "strict", z.ZodTypeAny, {
|
|
510
|
+
schema?: Record<string, ({
|
|
511
|
+
context: "client";
|
|
512
|
+
access: "public";
|
|
513
|
+
} | {
|
|
514
|
+
context: "server";
|
|
515
|
+
access: "public";
|
|
516
|
+
} | {
|
|
517
|
+
context: "server";
|
|
518
|
+
access: "secret";
|
|
519
|
+
}) & ({
|
|
520
|
+
type: "string";
|
|
521
|
+
default?: string | undefined;
|
|
522
|
+
optional?: boolean | undefined;
|
|
523
|
+
} | {
|
|
524
|
+
type: "number";
|
|
525
|
+
default?: number | undefined;
|
|
526
|
+
optional?: boolean | undefined;
|
|
527
|
+
} | {
|
|
528
|
+
type: "boolean";
|
|
529
|
+
default?: boolean | undefined;
|
|
530
|
+
optional?: boolean | undefined;
|
|
531
|
+
})> | undefined;
|
|
532
|
+
}, {
|
|
533
|
+
schema?: Record<string, ({
|
|
534
|
+
context: "client";
|
|
535
|
+
access: "public";
|
|
536
|
+
} | {
|
|
537
|
+
context: "server";
|
|
538
|
+
access: "public";
|
|
539
|
+
} | {
|
|
540
|
+
context: "server";
|
|
541
|
+
access: "secret";
|
|
542
|
+
}) & ({
|
|
543
|
+
type: "string";
|
|
544
|
+
default?: string | undefined;
|
|
545
|
+
optional?: boolean | undefined;
|
|
546
|
+
} | {
|
|
547
|
+
type: "number";
|
|
548
|
+
default?: number | undefined;
|
|
549
|
+
optional?: boolean | undefined;
|
|
550
|
+
} | {
|
|
551
|
+
type: "boolean";
|
|
552
|
+
default?: boolean | undefined;
|
|
553
|
+
optional?: boolean | undefined;
|
|
554
|
+
})> | undefined;
|
|
555
|
+
}>>;
|
|
402
556
|
}, "strict", z.ZodTypeAny, {
|
|
403
557
|
actions: boolean;
|
|
404
558
|
directRenderScript: boolean;
|
|
@@ -407,6 +561,30 @@ export declare const AstroConfigSchema: z.ZodObject<{
|
|
|
407
561
|
clientPrerender: boolean;
|
|
408
562
|
globalRoutePriority: boolean;
|
|
409
563
|
rewriting: boolean;
|
|
564
|
+
env?: {
|
|
565
|
+
schema?: Record<string, ({
|
|
566
|
+
context: "client";
|
|
567
|
+
access: "public";
|
|
568
|
+
} | {
|
|
569
|
+
context: "server";
|
|
570
|
+
access: "public";
|
|
571
|
+
} | {
|
|
572
|
+
context: "server";
|
|
573
|
+
access: "secret";
|
|
574
|
+
}) & ({
|
|
575
|
+
type: "string";
|
|
576
|
+
default?: string | undefined;
|
|
577
|
+
optional?: boolean | undefined;
|
|
578
|
+
} | {
|
|
579
|
+
type: "number";
|
|
580
|
+
default?: number | undefined;
|
|
581
|
+
optional?: boolean | undefined;
|
|
582
|
+
} | {
|
|
583
|
+
type: "boolean";
|
|
584
|
+
default?: boolean | undefined;
|
|
585
|
+
optional?: boolean | undefined;
|
|
586
|
+
})> | undefined;
|
|
587
|
+
} | undefined;
|
|
410
588
|
}, {
|
|
411
589
|
actions?: boolean | undefined;
|
|
412
590
|
directRenderScript?: boolean | undefined;
|
|
@@ -415,6 +593,30 @@ export declare const AstroConfigSchema: z.ZodObject<{
|
|
|
415
593
|
clientPrerender?: boolean | undefined;
|
|
416
594
|
globalRoutePriority?: boolean | undefined;
|
|
417
595
|
rewriting?: boolean | undefined;
|
|
596
|
+
env?: {
|
|
597
|
+
schema?: Record<string, ({
|
|
598
|
+
context: "client";
|
|
599
|
+
access: "public";
|
|
600
|
+
} | {
|
|
601
|
+
context: "server";
|
|
602
|
+
access: "public";
|
|
603
|
+
} | {
|
|
604
|
+
context: "server";
|
|
605
|
+
access: "secret";
|
|
606
|
+
}) & ({
|
|
607
|
+
type: "string";
|
|
608
|
+
default?: string | undefined;
|
|
609
|
+
optional?: boolean | undefined;
|
|
610
|
+
} | {
|
|
611
|
+
type: "number";
|
|
612
|
+
default?: number | undefined;
|
|
613
|
+
optional?: boolean | undefined;
|
|
614
|
+
} | {
|
|
615
|
+
type: "boolean";
|
|
616
|
+
default?: boolean | undefined;
|
|
617
|
+
optional?: boolean | undefined;
|
|
618
|
+
})> | undefined;
|
|
619
|
+
} | undefined;
|
|
418
620
|
}>>;
|
|
419
621
|
legacy: z.ZodDefault<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
420
622
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -500,6 +702,30 @@ export declare const AstroConfigSchema: z.ZodObject<{
|
|
|
500
702
|
clientPrerender: boolean;
|
|
501
703
|
globalRoutePriority: boolean;
|
|
502
704
|
rewriting: boolean;
|
|
705
|
+
env?: {
|
|
706
|
+
schema?: Record<string, ({
|
|
707
|
+
context: "client";
|
|
708
|
+
access: "public";
|
|
709
|
+
} | {
|
|
710
|
+
context: "server";
|
|
711
|
+
access: "public";
|
|
712
|
+
} | {
|
|
713
|
+
context: "server";
|
|
714
|
+
access: "secret";
|
|
715
|
+
}) & ({
|
|
716
|
+
type: "string";
|
|
717
|
+
default?: string | undefined;
|
|
718
|
+
optional?: boolean | undefined;
|
|
719
|
+
} | {
|
|
720
|
+
type: "number";
|
|
721
|
+
default?: number | undefined;
|
|
722
|
+
optional?: boolean | undefined;
|
|
723
|
+
} | {
|
|
724
|
+
type: "boolean";
|
|
725
|
+
default?: boolean | undefined;
|
|
726
|
+
optional?: boolean | undefined;
|
|
727
|
+
})> | undefined;
|
|
728
|
+
} | undefined;
|
|
503
729
|
};
|
|
504
730
|
legacy: {};
|
|
505
731
|
site?: string | undefined;
|
|
@@ -621,6 +847,30 @@ export declare const AstroConfigSchema: z.ZodObject<{
|
|
|
621
847
|
clientPrerender?: boolean | undefined;
|
|
622
848
|
globalRoutePriority?: boolean | undefined;
|
|
623
849
|
rewriting?: boolean | undefined;
|
|
850
|
+
env?: {
|
|
851
|
+
schema?: Record<string, ({
|
|
852
|
+
context: "client";
|
|
853
|
+
access: "public";
|
|
854
|
+
} | {
|
|
855
|
+
context: "server";
|
|
856
|
+
access: "public";
|
|
857
|
+
} | {
|
|
858
|
+
context: "server";
|
|
859
|
+
access: "secret";
|
|
860
|
+
}) & ({
|
|
861
|
+
type: "string";
|
|
862
|
+
default?: string | undefined;
|
|
863
|
+
optional?: boolean | undefined;
|
|
864
|
+
} | {
|
|
865
|
+
type: "number";
|
|
866
|
+
default?: number | undefined;
|
|
867
|
+
optional?: boolean | undefined;
|
|
868
|
+
} | {
|
|
869
|
+
type: "boolean";
|
|
870
|
+
default?: boolean | undefined;
|
|
871
|
+
optional?: boolean | undefined;
|
|
872
|
+
})> | undefined;
|
|
873
|
+
} | undefined;
|
|
624
874
|
} | undefined;
|
|
625
875
|
legacy?: {} | undefined;
|
|
626
876
|
}>;
|
|
@@ -962,6 +1212,160 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
|
|
|
962
1212
|
clientPrerender: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
963
1213
|
globalRoutePriority: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
964
1214
|
rewriting: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1215
|
+
env: z.ZodOptional<z.ZodObject<{
|
|
1216
|
+
schema: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
1217
|
+
context: z.ZodLiteral<"client">;
|
|
1218
|
+
access: z.ZodLiteral<"public">;
|
|
1219
|
+
}, "strip", z.ZodTypeAny, {
|
|
1220
|
+
context: "client";
|
|
1221
|
+
access: "public";
|
|
1222
|
+
}, {
|
|
1223
|
+
context: "client";
|
|
1224
|
+
access: "public";
|
|
1225
|
+
}>, z.ZodObject<{
|
|
1226
|
+
context: z.ZodLiteral<"server">;
|
|
1227
|
+
access: z.ZodLiteral<"public">;
|
|
1228
|
+
}, "strip", z.ZodTypeAny, {
|
|
1229
|
+
context: "server";
|
|
1230
|
+
access: "public";
|
|
1231
|
+
}, {
|
|
1232
|
+
context: "server";
|
|
1233
|
+
access: "public";
|
|
1234
|
+
}>, z.ZodObject<{
|
|
1235
|
+
context: z.ZodLiteral<"server">;
|
|
1236
|
+
access: z.ZodLiteral<"secret">;
|
|
1237
|
+
}, "strip", z.ZodTypeAny, {
|
|
1238
|
+
context: "server";
|
|
1239
|
+
access: "secret";
|
|
1240
|
+
}, {
|
|
1241
|
+
context: "server";
|
|
1242
|
+
access: "secret";
|
|
1243
|
+
}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1244
|
+
type: z.ZodLiteral<"string">;
|
|
1245
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
1246
|
+
default: z.ZodOptional<z.ZodString>;
|
|
1247
|
+
}, "strip", z.ZodTypeAny, {
|
|
1248
|
+
type: "string";
|
|
1249
|
+
default?: string | undefined;
|
|
1250
|
+
optional?: boolean | undefined;
|
|
1251
|
+
}, {
|
|
1252
|
+
type: "string";
|
|
1253
|
+
default?: string | undefined;
|
|
1254
|
+
optional?: boolean | undefined;
|
|
1255
|
+
}>, z.ZodObject<{
|
|
1256
|
+
type: z.ZodLiteral<"number">;
|
|
1257
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
1258
|
+
default: z.ZodOptional<z.ZodNumber>;
|
|
1259
|
+
}, "strip", z.ZodTypeAny, {
|
|
1260
|
+
type: "number";
|
|
1261
|
+
default?: number | undefined;
|
|
1262
|
+
optional?: boolean | undefined;
|
|
1263
|
+
}, {
|
|
1264
|
+
type: "number";
|
|
1265
|
+
default?: number | undefined;
|
|
1266
|
+
optional?: boolean | undefined;
|
|
1267
|
+
}>, z.ZodObject<{
|
|
1268
|
+
type: z.ZodLiteral<"boolean">;
|
|
1269
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
1270
|
+
default: z.ZodOptional<z.ZodBoolean>;
|
|
1271
|
+
}, "strip", z.ZodTypeAny, {
|
|
1272
|
+
type: "boolean";
|
|
1273
|
+
default?: boolean | undefined;
|
|
1274
|
+
optional?: boolean | undefined;
|
|
1275
|
+
}, {
|
|
1276
|
+
type: "boolean";
|
|
1277
|
+
default?: boolean | undefined;
|
|
1278
|
+
optional?: boolean | undefined;
|
|
1279
|
+
}>]>>>, Record<string, ({
|
|
1280
|
+
context: "client";
|
|
1281
|
+
access: "public";
|
|
1282
|
+
} | {
|
|
1283
|
+
context: "server";
|
|
1284
|
+
access: "public";
|
|
1285
|
+
} | {
|
|
1286
|
+
context: "server";
|
|
1287
|
+
access: "secret";
|
|
1288
|
+
}) & ({
|
|
1289
|
+
type: "string";
|
|
1290
|
+
default?: string | undefined;
|
|
1291
|
+
optional?: boolean | undefined;
|
|
1292
|
+
} | {
|
|
1293
|
+
type: "number";
|
|
1294
|
+
default?: number | undefined;
|
|
1295
|
+
optional?: boolean | undefined;
|
|
1296
|
+
} | {
|
|
1297
|
+
type: "boolean";
|
|
1298
|
+
default?: boolean | undefined;
|
|
1299
|
+
optional?: boolean | undefined;
|
|
1300
|
+
})>, Record<string, ({
|
|
1301
|
+
context: "client";
|
|
1302
|
+
access: "public";
|
|
1303
|
+
} | {
|
|
1304
|
+
context: "server";
|
|
1305
|
+
access: "public";
|
|
1306
|
+
} | {
|
|
1307
|
+
context: "server";
|
|
1308
|
+
access: "secret";
|
|
1309
|
+
}) & ({
|
|
1310
|
+
type: "string";
|
|
1311
|
+
default?: string | undefined;
|
|
1312
|
+
optional?: boolean | undefined;
|
|
1313
|
+
} | {
|
|
1314
|
+
type: "number";
|
|
1315
|
+
default?: number | undefined;
|
|
1316
|
+
optional?: boolean | undefined;
|
|
1317
|
+
} | {
|
|
1318
|
+
type: "boolean";
|
|
1319
|
+
default?: boolean | undefined;
|
|
1320
|
+
optional?: boolean | undefined;
|
|
1321
|
+
})>>>;
|
|
1322
|
+
}, "strict", z.ZodTypeAny, {
|
|
1323
|
+
schema?: Record<string, ({
|
|
1324
|
+
context: "client";
|
|
1325
|
+
access: "public";
|
|
1326
|
+
} | {
|
|
1327
|
+
context: "server";
|
|
1328
|
+
access: "public";
|
|
1329
|
+
} | {
|
|
1330
|
+
context: "server";
|
|
1331
|
+
access: "secret";
|
|
1332
|
+
}) & ({
|
|
1333
|
+
type: "string";
|
|
1334
|
+
default?: string | undefined;
|
|
1335
|
+
optional?: boolean | undefined;
|
|
1336
|
+
} | {
|
|
1337
|
+
type: "number";
|
|
1338
|
+
default?: number | undefined;
|
|
1339
|
+
optional?: boolean | undefined;
|
|
1340
|
+
} | {
|
|
1341
|
+
type: "boolean";
|
|
1342
|
+
default?: boolean | undefined;
|
|
1343
|
+
optional?: boolean | undefined;
|
|
1344
|
+
})> | undefined;
|
|
1345
|
+
}, {
|
|
1346
|
+
schema?: Record<string, ({
|
|
1347
|
+
context: "client";
|
|
1348
|
+
access: "public";
|
|
1349
|
+
} | {
|
|
1350
|
+
context: "server";
|
|
1351
|
+
access: "public";
|
|
1352
|
+
} | {
|
|
1353
|
+
context: "server";
|
|
1354
|
+
access: "secret";
|
|
1355
|
+
}) & ({
|
|
1356
|
+
type: "string";
|
|
1357
|
+
default?: string | undefined;
|
|
1358
|
+
optional?: boolean | undefined;
|
|
1359
|
+
} | {
|
|
1360
|
+
type: "number";
|
|
1361
|
+
default?: number | undefined;
|
|
1362
|
+
optional?: boolean | undefined;
|
|
1363
|
+
} | {
|
|
1364
|
+
type: "boolean";
|
|
1365
|
+
default?: boolean | undefined;
|
|
1366
|
+
optional?: boolean | undefined;
|
|
1367
|
+
})> | undefined;
|
|
1368
|
+
}>>;
|
|
965
1369
|
}, "strict", z.ZodTypeAny, {
|
|
966
1370
|
actions: boolean;
|
|
967
1371
|
directRenderScript: boolean;
|
|
@@ -970,6 +1374,30 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
|
|
|
970
1374
|
clientPrerender: boolean;
|
|
971
1375
|
globalRoutePriority: boolean;
|
|
972
1376
|
rewriting: boolean;
|
|
1377
|
+
env?: {
|
|
1378
|
+
schema?: Record<string, ({
|
|
1379
|
+
context: "client";
|
|
1380
|
+
access: "public";
|
|
1381
|
+
} | {
|
|
1382
|
+
context: "server";
|
|
1383
|
+
access: "public";
|
|
1384
|
+
} | {
|
|
1385
|
+
context: "server";
|
|
1386
|
+
access: "secret";
|
|
1387
|
+
}) & ({
|
|
1388
|
+
type: "string";
|
|
1389
|
+
default?: string | undefined;
|
|
1390
|
+
optional?: boolean | undefined;
|
|
1391
|
+
} | {
|
|
1392
|
+
type: "number";
|
|
1393
|
+
default?: number | undefined;
|
|
1394
|
+
optional?: boolean | undefined;
|
|
1395
|
+
} | {
|
|
1396
|
+
type: "boolean";
|
|
1397
|
+
default?: boolean | undefined;
|
|
1398
|
+
optional?: boolean | undefined;
|
|
1399
|
+
})> | undefined;
|
|
1400
|
+
} | undefined;
|
|
973
1401
|
}, {
|
|
974
1402
|
actions?: boolean | undefined;
|
|
975
1403
|
directRenderScript?: boolean | undefined;
|
|
@@ -978,6 +1406,30 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
|
|
|
978
1406
|
clientPrerender?: boolean | undefined;
|
|
979
1407
|
globalRoutePriority?: boolean | undefined;
|
|
980
1408
|
rewriting?: boolean | undefined;
|
|
1409
|
+
env?: {
|
|
1410
|
+
schema?: Record<string, ({
|
|
1411
|
+
context: "client";
|
|
1412
|
+
access: "public";
|
|
1413
|
+
} | {
|
|
1414
|
+
context: "server";
|
|
1415
|
+
access: "public";
|
|
1416
|
+
} | {
|
|
1417
|
+
context: "server";
|
|
1418
|
+
access: "secret";
|
|
1419
|
+
}) & ({
|
|
1420
|
+
type: "string";
|
|
1421
|
+
default?: string | undefined;
|
|
1422
|
+
optional?: boolean | undefined;
|
|
1423
|
+
} | {
|
|
1424
|
+
type: "number";
|
|
1425
|
+
default?: number | undefined;
|
|
1426
|
+
optional?: boolean | undefined;
|
|
1427
|
+
} | {
|
|
1428
|
+
type: "boolean";
|
|
1429
|
+
default?: boolean | undefined;
|
|
1430
|
+
optional?: boolean | undefined;
|
|
1431
|
+
})> | undefined;
|
|
1432
|
+
} | undefined;
|
|
981
1433
|
}>>;
|
|
982
1434
|
legacy: z.ZodDefault<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
983
1435
|
}, {
|
|
@@ -1138,6 +1590,30 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
|
|
|
1138
1590
|
clientPrerender: boolean;
|
|
1139
1591
|
globalRoutePriority: boolean;
|
|
1140
1592
|
rewriting: boolean;
|
|
1593
|
+
env?: {
|
|
1594
|
+
schema?: Record<string, ({
|
|
1595
|
+
context: "client";
|
|
1596
|
+
access: "public";
|
|
1597
|
+
} | {
|
|
1598
|
+
context: "server";
|
|
1599
|
+
access: "public";
|
|
1600
|
+
} | {
|
|
1601
|
+
context: "server";
|
|
1602
|
+
access: "secret";
|
|
1603
|
+
}) & ({
|
|
1604
|
+
type: "string";
|
|
1605
|
+
default?: string | undefined;
|
|
1606
|
+
optional?: boolean | undefined;
|
|
1607
|
+
} | {
|
|
1608
|
+
type: "number";
|
|
1609
|
+
default?: number | undefined;
|
|
1610
|
+
optional?: boolean | undefined;
|
|
1611
|
+
} | {
|
|
1612
|
+
type: "boolean";
|
|
1613
|
+
default?: boolean | undefined;
|
|
1614
|
+
optional?: boolean | undefined;
|
|
1615
|
+
})> | undefined;
|
|
1616
|
+
} | undefined;
|
|
1141
1617
|
};
|
|
1142
1618
|
legacy: {};
|
|
1143
1619
|
site?: string | undefined;
|
|
@@ -1259,6 +1735,30 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
|
|
|
1259
1735
|
clientPrerender?: boolean | undefined;
|
|
1260
1736
|
globalRoutePriority?: boolean | undefined;
|
|
1261
1737
|
rewriting?: boolean | undefined;
|
|
1738
|
+
env?: {
|
|
1739
|
+
schema?: Record<string, ({
|
|
1740
|
+
context: "client";
|
|
1741
|
+
access: "public";
|
|
1742
|
+
} | {
|
|
1743
|
+
context: "server";
|
|
1744
|
+
access: "public";
|
|
1745
|
+
} | {
|
|
1746
|
+
context: "server";
|
|
1747
|
+
access: "secret";
|
|
1748
|
+
}) & ({
|
|
1749
|
+
type: "string";
|
|
1750
|
+
default?: string | undefined;
|
|
1751
|
+
optional?: boolean | undefined;
|
|
1752
|
+
} | {
|
|
1753
|
+
type: "number";
|
|
1754
|
+
default?: number | undefined;
|
|
1755
|
+
optional?: boolean | undefined;
|
|
1756
|
+
} | {
|
|
1757
|
+
type: "boolean";
|
|
1758
|
+
default?: boolean | undefined;
|
|
1759
|
+
optional?: boolean | undefined;
|
|
1760
|
+
})> | undefined;
|
|
1761
|
+
} | undefined;
|
|
1262
1762
|
} | undefined;
|
|
1263
1763
|
legacy?: {} | undefined;
|
|
1264
1764
|
}>, {
|
|
@@ -1345,6 +1845,30 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
|
|
|
1345
1845
|
clientPrerender: boolean;
|
|
1346
1846
|
globalRoutePriority: boolean;
|
|
1347
1847
|
rewriting: boolean;
|
|
1848
|
+
env?: {
|
|
1849
|
+
schema?: Record<string, ({
|
|
1850
|
+
context: "client";
|
|
1851
|
+
access: "public";
|
|
1852
|
+
} | {
|
|
1853
|
+
context: "server";
|
|
1854
|
+
access: "public";
|
|
1855
|
+
} | {
|
|
1856
|
+
context: "server";
|
|
1857
|
+
access: "secret";
|
|
1858
|
+
}) & ({
|
|
1859
|
+
type: "string";
|
|
1860
|
+
default?: string | undefined;
|
|
1861
|
+
optional?: boolean | undefined;
|
|
1862
|
+
} | {
|
|
1863
|
+
type: "number";
|
|
1864
|
+
default?: number | undefined;
|
|
1865
|
+
optional?: boolean | undefined;
|
|
1866
|
+
} | {
|
|
1867
|
+
type: "boolean";
|
|
1868
|
+
default?: boolean | undefined;
|
|
1869
|
+
optional?: boolean | undefined;
|
|
1870
|
+
})> | undefined;
|
|
1871
|
+
} | undefined;
|
|
1348
1872
|
};
|
|
1349
1873
|
legacy: {};
|
|
1350
1874
|
site?: string | undefined;
|
|
@@ -1466,6 +1990,30 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
|
|
|
1466
1990
|
clientPrerender?: boolean | undefined;
|
|
1467
1991
|
globalRoutePriority?: boolean | undefined;
|
|
1468
1992
|
rewriting?: boolean | undefined;
|
|
1993
|
+
env?: {
|
|
1994
|
+
schema?: Record<string, ({
|
|
1995
|
+
context: "client";
|
|
1996
|
+
access: "public";
|
|
1997
|
+
} | {
|
|
1998
|
+
context: "server";
|
|
1999
|
+
access: "public";
|
|
2000
|
+
} | {
|
|
2001
|
+
context: "server";
|
|
2002
|
+
access: "secret";
|
|
2003
|
+
}) & ({
|
|
2004
|
+
type: "string";
|
|
2005
|
+
default?: string | undefined;
|
|
2006
|
+
optional?: boolean | undefined;
|
|
2007
|
+
} | {
|
|
2008
|
+
type: "number";
|
|
2009
|
+
default?: number | undefined;
|
|
2010
|
+
optional?: boolean | undefined;
|
|
2011
|
+
} | {
|
|
2012
|
+
type: "boolean";
|
|
2013
|
+
default?: boolean | undefined;
|
|
2014
|
+
optional?: boolean | undefined;
|
|
2015
|
+
})> | undefined;
|
|
2016
|
+
} | undefined;
|
|
1469
2017
|
} | undefined;
|
|
1470
2018
|
legacy?: {} | undefined;
|
|
1471
2019
|
}>, {
|
|
@@ -1552,6 +2100,30 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
|
|
|
1552
2100
|
clientPrerender: boolean;
|
|
1553
2101
|
globalRoutePriority: boolean;
|
|
1554
2102
|
rewriting: boolean;
|
|
2103
|
+
env?: {
|
|
2104
|
+
schema?: Record<string, ({
|
|
2105
|
+
context: "client";
|
|
2106
|
+
access: "public";
|
|
2107
|
+
} | {
|
|
2108
|
+
context: "server";
|
|
2109
|
+
access: "public";
|
|
2110
|
+
} | {
|
|
2111
|
+
context: "server";
|
|
2112
|
+
access: "secret";
|
|
2113
|
+
}) & ({
|
|
2114
|
+
type: "string";
|
|
2115
|
+
default?: string | undefined;
|
|
2116
|
+
optional?: boolean | undefined;
|
|
2117
|
+
} | {
|
|
2118
|
+
type: "number";
|
|
2119
|
+
default?: number | undefined;
|
|
2120
|
+
optional?: boolean | undefined;
|
|
2121
|
+
} | {
|
|
2122
|
+
type: "boolean";
|
|
2123
|
+
default?: boolean | undefined;
|
|
2124
|
+
optional?: boolean | undefined;
|
|
2125
|
+
})> | undefined;
|
|
2126
|
+
} | undefined;
|
|
1555
2127
|
};
|
|
1556
2128
|
legacy: {};
|
|
1557
2129
|
site?: string | undefined;
|
|
@@ -1673,6 +2245,30 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
|
|
|
1673
2245
|
clientPrerender?: boolean | undefined;
|
|
1674
2246
|
globalRoutePriority?: boolean | undefined;
|
|
1675
2247
|
rewriting?: boolean | undefined;
|
|
2248
|
+
env?: {
|
|
2249
|
+
schema?: Record<string, ({
|
|
2250
|
+
context: "client";
|
|
2251
|
+
access: "public";
|
|
2252
|
+
} | {
|
|
2253
|
+
context: "server";
|
|
2254
|
+
access: "public";
|
|
2255
|
+
} | {
|
|
2256
|
+
context: "server";
|
|
2257
|
+
access: "secret";
|
|
2258
|
+
}) & ({
|
|
2259
|
+
type: "string";
|
|
2260
|
+
default?: string | undefined;
|
|
2261
|
+
optional?: boolean | undefined;
|
|
2262
|
+
} | {
|
|
2263
|
+
type: "number";
|
|
2264
|
+
default?: number | undefined;
|
|
2265
|
+
optional?: boolean | undefined;
|
|
2266
|
+
} | {
|
|
2267
|
+
type: "boolean";
|
|
2268
|
+
default?: boolean | undefined;
|
|
2269
|
+
optional?: boolean | undefined;
|
|
2270
|
+
})> | undefined;
|
|
2271
|
+
} | undefined;
|
|
1676
2272
|
} | undefined;
|
|
1677
2273
|
legacy?: {} | undefined;
|
|
1678
2274
|
}>, {
|
|
@@ -1759,6 +2355,30 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
|
|
|
1759
2355
|
clientPrerender: boolean;
|
|
1760
2356
|
globalRoutePriority: boolean;
|
|
1761
2357
|
rewriting: boolean;
|
|
2358
|
+
env?: {
|
|
2359
|
+
schema?: Record<string, ({
|
|
2360
|
+
context: "client";
|
|
2361
|
+
access: "public";
|
|
2362
|
+
} | {
|
|
2363
|
+
context: "server";
|
|
2364
|
+
access: "public";
|
|
2365
|
+
} | {
|
|
2366
|
+
context: "server";
|
|
2367
|
+
access: "secret";
|
|
2368
|
+
}) & ({
|
|
2369
|
+
type: "string";
|
|
2370
|
+
default?: string | undefined;
|
|
2371
|
+
optional?: boolean | undefined;
|
|
2372
|
+
} | {
|
|
2373
|
+
type: "number";
|
|
2374
|
+
default?: number | undefined;
|
|
2375
|
+
optional?: boolean | undefined;
|
|
2376
|
+
} | {
|
|
2377
|
+
type: "boolean";
|
|
2378
|
+
default?: boolean | undefined;
|
|
2379
|
+
optional?: boolean | undefined;
|
|
2380
|
+
})> | undefined;
|
|
2381
|
+
} | undefined;
|
|
1762
2382
|
};
|
|
1763
2383
|
legacy: {};
|
|
1764
2384
|
site?: string | undefined;
|
|
@@ -1880,6 +2500,30 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
|
|
|
1880
2500
|
clientPrerender?: boolean | undefined;
|
|
1881
2501
|
globalRoutePriority?: boolean | undefined;
|
|
1882
2502
|
rewriting?: boolean | undefined;
|
|
2503
|
+
env?: {
|
|
2504
|
+
schema?: Record<string, ({
|
|
2505
|
+
context: "client";
|
|
2506
|
+
access: "public";
|
|
2507
|
+
} | {
|
|
2508
|
+
context: "server";
|
|
2509
|
+
access: "public";
|
|
2510
|
+
} | {
|
|
2511
|
+
context: "server";
|
|
2512
|
+
access: "secret";
|
|
2513
|
+
}) & ({
|
|
2514
|
+
type: "string";
|
|
2515
|
+
default?: string | undefined;
|
|
2516
|
+
optional?: boolean | undefined;
|
|
2517
|
+
} | {
|
|
2518
|
+
type: "number";
|
|
2519
|
+
default?: number | undefined;
|
|
2520
|
+
optional?: boolean | undefined;
|
|
2521
|
+
} | {
|
|
2522
|
+
type: "boolean";
|
|
2523
|
+
default?: boolean | undefined;
|
|
2524
|
+
optional?: boolean | undefined;
|
|
2525
|
+
})> | undefined;
|
|
2526
|
+
} | undefined;
|
|
1883
2527
|
} | undefined;
|
|
1884
2528
|
legacy?: {} | undefined;
|
|
1885
2529
|
}>;
|