astro 5.8.2 → 5.9.1

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.
Files changed (73) hide show
  1. package/dist/actions/runtime/utils.d.ts +1 -1
  2. package/dist/assets/fonts/config.d.ts +21 -21
  3. package/dist/container/index.js +2 -1
  4. package/dist/content/content-layer.js +14 -3
  5. package/dist/content/loaders/types.d.ts +3 -0
  6. package/dist/content/utils.d.ts +26 -10
  7. package/dist/content/utils.js +1 -0
  8. package/dist/core/app/index.js +9 -3
  9. package/dist/core/app/types.d.ts +12 -1
  10. package/dist/core/base-pipeline.js +3 -3
  11. package/dist/core/build/generate.d.ts +1 -1
  12. package/dist/core/build/generate.js +38 -4
  13. package/dist/core/build/internal.d.ts +1 -0
  14. package/dist/core/build/internal.js +2 -1
  15. package/dist/core/build/plugins/index.js +1 -1
  16. package/dist/core/build/plugins/plugin-internals.d.ts +2 -1
  17. package/dist/core/build/plugins/plugin-internals.js +7 -4
  18. package/dist/core/build/plugins/plugin-manifest.js +37 -3
  19. package/dist/core/config/merge.js +1 -6
  20. package/dist/core/config/schemas/base.d.ts +435 -331
  21. package/dist/core/config/schemas/base.js +20 -2
  22. package/dist/core/config/schemas/index.d.ts +1 -1
  23. package/dist/core/config/schemas/index.js +4 -1
  24. package/dist/core/config/schemas/relative.d.ts +681 -552
  25. package/dist/core/constants.js +1 -1
  26. package/dist/core/csp/common.d.ts +16 -0
  27. package/dist/core/csp/common.js +116 -0
  28. package/dist/core/csp/config.d.ts +16 -0
  29. package/dist/core/csp/config.js +52 -0
  30. package/dist/core/dev/dev.js +1 -1
  31. package/dist/core/encryption.d.ts +8 -0
  32. package/dist/core/encryption.js +7 -0
  33. package/dist/core/errors/errors-data.d.ts +12 -0
  34. package/dist/core/errors/errors-data.js +6 -0
  35. package/dist/core/messages.js +2 -2
  36. package/dist/core/middleware/index.js +10 -0
  37. package/dist/core/render-context.d.ts +1 -0
  38. package/dist/core/render-context.js +77 -5
  39. package/dist/core/util.d.ts +1 -0
  40. package/dist/core/util.js +6 -1
  41. package/dist/env/schema.d.ts +34 -34
  42. package/dist/integrations/features-validation.js +36 -30
  43. package/dist/integrations/hooks.d.ts +3 -2
  44. package/dist/runtime/server/astro-island-styles.d.ts +1 -0
  45. package/dist/runtime/server/astro-island-styles.js +4 -0
  46. package/dist/runtime/server/index.d.ts +1 -0
  47. package/dist/runtime/server/render/astro/factory.d.ts +3 -2
  48. package/dist/runtime/server/render/astro/factory.js +6 -1
  49. package/dist/runtime/server/render/astro/head-and-content.d.ts +7 -0
  50. package/dist/runtime/server/render/astro/head-and-content.js +6 -0
  51. package/dist/runtime/server/render/astro/render.d.ts +1 -0
  52. package/dist/runtime/server/render/astro/render.js +2 -1
  53. package/dist/runtime/server/render/common.d.ts +1 -1
  54. package/dist/runtime/server/render/common.js +5 -3
  55. package/dist/runtime/server/render/component.js +8 -2
  56. package/dist/runtime/server/render/csp.d.ts +2 -0
  57. package/dist/runtime/server/render/csp.js +35 -0
  58. package/dist/runtime/server/render/head.js +14 -0
  59. package/dist/runtime/server/render/page.d.ts +1 -1
  60. package/dist/runtime/server/render/page.js +1 -1
  61. package/dist/runtime/server/render/server-islands.d.ts +14 -3
  62. package/dist/runtime/server/render/server-islands.js +100 -69
  63. package/dist/runtime/server/scripts.d.ts +1 -1
  64. package/dist/runtime/server/scripts.js +2 -5
  65. package/dist/runtime/server/transition.d.ts +1 -1
  66. package/dist/runtime/server/transition.js +7 -2
  67. package/dist/types/public/config.d.ts +240 -7
  68. package/dist/types/public/context.d.ts +51 -0
  69. package/dist/types/public/integrations.d.ts +9 -0
  70. package/dist/types/public/internal.d.ts +24 -2
  71. package/dist/vite-plugin-astro-server/css.js +3 -3
  72. package/dist/vite-plugin-astro-server/plugin.js +26 -4
  73. package/package.json +3 -3
@@ -74,6 +74,7 @@ export declare const ASTRO_CONFIG_DEFAULTS: {
74
74
  responsiveImages: false;
75
75
  headingIdCompat: false;
76
76
  preserveScriptOrder: false;
77
+ csp: false;
77
78
  };
78
79
  };
79
80
  export declare const AstroConfigSchema: z.ZodObject<{
@@ -134,25 +135,25 @@ export declare const AstroConfigSchema: z.ZodObject<{
134
135
  inlineStylesheets: z.ZodDefault<z.ZodOptional<z.ZodEnum<["always", "auto", "never"]>>>;
135
136
  concurrency: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
136
137
  }, "strip", z.ZodTypeAny, {
138
+ redirects: boolean;
139
+ assets: string;
140
+ format: "preserve" | "file" | "directory";
137
141
  client: URL;
138
- format: "file" | "directory" | "preserve";
139
142
  server: URL;
140
- assets: string;
141
143
  serverEntry: string;
142
- redirects: boolean;
143
- inlineStylesheets: "never" | "always" | "auto";
144
+ inlineStylesheets: "auto" | "never" | "always";
144
145
  concurrency: number;
145
146
  assetsPrefix?: string | ({
146
147
  fallback: string;
147
148
  } & Record<string, string>) | undefined;
148
149
  }, {
150
+ redirects?: boolean | undefined;
151
+ assets?: string | undefined;
152
+ format?: "preserve" | "file" | "directory" | undefined;
149
153
  client?: string | undefined;
150
- format?: "file" | "directory" | "preserve" | undefined;
151
154
  server?: string | undefined;
152
- assets?: string | undefined;
153
155
  serverEntry?: string | undefined;
154
- redirects?: boolean | undefined;
155
- inlineStylesheets?: "never" | "always" | "auto" | undefined;
156
+ inlineStylesheets?: "auto" | "never" | "always" | undefined;
156
157
  concurrency?: number | undefined;
157
158
  assetsPrefix?: string | ({
158
159
  fallback: string;
@@ -187,10 +188,10 @@ export declare const AstroConfigSchema: z.ZodObject<{
187
188
  status: z.ZodUnion<[z.ZodLiteral<300>, z.ZodLiteral<301>, z.ZodLiteral<302>, z.ZodLiteral<303>, z.ZodLiteral<304>, z.ZodLiteral<307>, z.ZodLiteral<308>]>;
188
189
  destination: z.ZodString;
189
190
  }, "strip", z.ZodTypeAny, {
190
- status: 300 | 301 | 302 | 303 | 304 | 307 | 308;
191
+ status: 301 | 302 | 303 | 307 | 308 | 300 | 304;
191
192
  destination: string;
192
193
  }, {
193
- status: 300 | 301 | 302 | 303 | 304 | 307 | 308;
194
+ status: 301 | 302 | 303 | 307 | 308 | 300 | 304;
194
195
  destination: string;
195
196
  }>]>>>;
196
197
  prefetch: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
@@ -198,10 +199,10 @@ export declare const AstroConfigSchema: z.ZodObject<{
198
199
  defaultStrategy: z.ZodOptional<z.ZodEnum<["tap", "hover", "viewport", "load"]>>;
199
200
  }, "strip", z.ZodTypeAny, {
200
201
  prefetchAll?: boolean | undefined;
201
- defaultStrategy?: "load" | "tap" | "hover" | "viewport" | undefined;
202
+ defaultStrategy?: "tap" | "hover" | "viewport" | "load" | undefined;
202
203
  }, {
203
204
  prefetchAll?: boolean | undefined;
204
- defaultStrategy?: "load" | "tap" | "hover" | "viewport" | undefined;
205
+ defaultStrategy?: "tap" | "hover" | "viewport" | "load" | undefined;
205
206
  }>]>>;
206
207
  image: z.ZodDefault<z.ZodObject<{
207
208
  endpoint: z.ZodDefault<z.ZodObject<{
@@ -218,11 +219,11 @@ export declare const AstroConfigSchema: z.ZodObject<{
218
219
  entrypoint: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"astro/assets/services/sharp">, z.ZodString]>>;
219
220
  config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>;
220
221
  }, "strip", z.ZodTypeAny, {
221
- entrypoint: string;
222
222
  config: Record<string, any>;
223
+ entrypoint: string;
223
224
  }, {
224
- entrypoint?: string | undefined;
225
225
  config?: Record<string, any> | undefined;
226
+ entrypoint?: string | undefined;
226
227
  }>>;
227
228
  domains: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
228
229
  remotePatterns: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -253,8 +254,8 @@ export declare const AstroConfigSchema: z.ZodObject<{
253
254
  entrypoint?: string | undefined;
254
255
  };
255
256
  service: {
256
- entrypoint: string;
257
257
  config: Record<string, any>;
258
+ entrypoint: string;
258
259
  };
259
260
  domains: string[];
260
261
  remotePatterns: {
@@ -263,7 +264,7 @@ export declare const AstroConfigSchema: z.ZodObject<{
263
264
  hostname?: string | undefined;
264
265
  pathname?: string | undefined;
265
266
  }[];
266
- experimentalLayout?: "none" | "fixed" | "constrained" | "full-width" | undefined;
267
+ experimentalLayout?: "fixed" | "constrained" | "full-width" | "none" | undefined;
267
268
  experimentalObjectFit?: string | undefined;
268
269
  experimentalObjectPosition?: string | undefined;
269
270
  experimentalBreakpoints?: number[] | undefined;
@@ -274,8 +275,8 @@ export declare const AstroConfigSchema: z.ZodObject<{
274
275
  route?: string | undefined;
275
276
  } | undefined;
276
277
  service?: {
277
- entrypoint?: string | undefined;
278
278
  config?: Record<string, any> | undefined;
279
+ entrypoint?: string | undefined;
279
280
  } | undefined;
280
281
  domains?: string[] | undefined;
281
282
  remotePatterns?: {
@@ -284,7 +285,7 @@ export declare const AstroConfigSchema: z.ZodObject<{
284
285
  hostname?: string | undefined;
285
286
  pathname?: string | undefined;
286
287
  }[] | undefined;
287
- experimentalLayout?: "none" | "fixed" | "constrained" | "full-width" | undefined;
288
+ experimentalLayout?: "fixed" | "constrained" | "full-width" | "none" | undefined;
288
289
  experimentalObjectFit?: string | undefined;
289
290
  experimentalObjectPosition?: string | undefined;
290
291
  experimentalBreakpoints?: number[] | undefined;
@@ -492,22 +493,22 @@ export declare const AstroConfigSchema: z.ZodObject<{
492
493
  includes?: string | undefined;
493
494
  endsWith?: string | undefined;
494
495
  startsWith?: string | undefined;
495
- default?: string | undefined;
496
496
  optional?: boolean | undefined;
497
+ url?: boolean | undefined;
498
+ default?: string | undefined;
497
499
  max?: number | undefined;
498
500
  min?: number | undefined;
499
- url?: boolean | undefined;
500
501
  }, {
501
502
  type: "string";
502
503
  length?: number | undefined;
503
504
  includes?: string | undefined;
504
505
  endsWith?: string | undefined;
505
506
  startsWith?: string | undefined;
506
- default?: string | undefined;
507
507
  optional?: boolean | undefined;
508
+ url?: boolean | undefined;
509
+ default?: string | undefined;
508
510
  max?: number | undefined;
509
511
  min?: number | undefined;
510
- url?: boolean | undefined;
511
512
  }>, z.ZodObject<{
512
513
  type: z.ZodLiteral<"number">;
513
514
  optional: z.ZodOptional<z.ZodBoolean>;
@@ -519,8 +520,8 @@ export declare const AstroConfigSchema: z.ZodObject<{
519
520
  int: z.ZodOptional<z.ZodBoolean>;
520
521
  }, "strip", z.ZodTypeAny, {
521
522
  type: "number";
522
- default?: number | undefined;
523
523
  optional?: boolean | undefined;
524
+ default?: number | undefined;
524
525
  max?: number | undefined;
525
526
  min?: number | undefined;
526
527
  gt?: number | undefined;
@@ -528,8 +529,8 @@ export declare const AstroConfigSchema: z.ZodObject<{
528
529
  int?: boolean | undefined;
529
530
  }, {
530
531
  type: "number";
531
- default?: number | undefined;
532
532
  optional?: boolean | undefined;
533
+ default?: number | undefined;
533
534
  max?: number | undefined;
534
535
  min?: number | undefined;
535
536
  gt?: number | undefined;
@@ -541,12 +542,12 @@ export declare const AstroConfigSchema: z.ZodObject<{
541
542
  default: z.ZodOptional<z.ZodBoolean>;
542
543
  }, "strip", z.ZodTypeAny, {
543
544
  type: "boolean";
544
- default?: boolean | undefined;
545
545
  optional?: boolean | undefined;
546
+ default?: boolean | undefined;
546
547
  }, {
547
548
  type: "boolean";
548
- default?: boolean | undefined;
549
549
  optional?: boolean | undefined;
550
+ default?: boolean | undefined;
550
551
  }>, z.ZodEffects<z.ZodObject<{
551
552
  type: z.ZodLiteral<"enum">;
552
553
  values: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
@@ -555,23 +556,23 @@ export declare const AstroConfigSchema: z.ZodObject<{
555
556
  }, "strip", z.ZodTypeAny, {
556
557
  values: string[];
557
558
  type: "enum";
558
- default?: string | undefined;
559
559
  optional?: boolean | undefined;
560
+ default?: string | undefined;
560
561
  }, {
561
562
  values: string[];
562
563
  type: "enum";
563
- default?: string | undefined;
564
564
  optional?: boolean | undefined;
565
+ default?: string | undefined;
565
566
  }>, {
566
567
  values: string[];
567
568
  type: "enum";
568
- default?: string | undefined;
569
569
  optional?: boolean | undefined;
570
+ default?: string | undefined;
570
571
  }, {
571
572
  values: string[];
572
573
  type: "enum";
573
- default?: string | undefined;
574
574
  optional?: boolean | undefined;
575
+ default?: string | undefined;
575
576
  }>]>>>>>;
576
577
  validateSecrets: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
577
578
  }, "strict", z.ZodTypeAny, {
@@ -591,15 +592,15 @@ export declare const AstroConfigSchema: z.ZodObject<{
591
592
  includes?: string | undefined;
592
593
  endsWith?: string | undefined;
593
594
  startsWith?: string | undefined;
594
- default?: string | undefined;
595
595
  optional?: boolean | undefined;
596
+ url?: boolean | undefined;
597
+ default?: string | undefined;
596
598
  max?: number | undefined;
597
599
  min?: number | undefined;
598
- url?: boolean | undefined;
599
600
  } | {
600
601
  type: "number";
601
- default?: number | undefined;
602
602
  optional?: boolean | undefined;
603
+ default?: number | undefined;
603
604
  max?: number | undefined;
604
605
  min?: number | undefined;
605
606
  gt?: number | undefined;
@@ -607,13 +608,13 @@ export declare const AstroConfigSchema: z.ZodObject<{
607
608
  int?: boolean | undefined;
608
609
  } | {
609
610
  type: "boolean";
610
- default?: boolean | undefined;
611
611
  optional?: boolean | undefined;
612
+ default?: boolean | undefined;
612
613
  } | {
613
614
  values: string[];
614
615
  type: "enum";
615
- default?: string | undefined;
616
616
  optional?: boolean | undefined;
617
+ default?: string | undefined;
617
618
  })>;
618
619
  }, {
619
620
  validateSecrets?: boolean | undefined;
@@ -632,15 +633,15 @@ export declare const AstroConfigSchema: z.ZodObject<{
632
633
  includes?: string | undefined;
633
634
  endsWith?: string | undefined;
634
635
  startsWith?: string | undefined;
635
- default?: string | undefined;
636
636
  optional?: boolean | undefined;
637
+ url?: boolean | undefined;
638
+ default?: string | undefined;
637
639
  max?: number | undefined;
638
640
  min?: number | undefined;
639
- url?: boolean | undefined;
640
641
  } | {
641
642
  type: "number";
642
- default?: number | undefined;
643
643
  optional?: boolean | undefined;
644
+ default?: number | undefined;
644
645
  max?: number | undefined;
645
646
  min?: number | undefined;
646
647
  gt?: number | undefined;
@@ -648,13 +649,13 @@ export declare const AstroConfigSchema: z.ZodObject<{
648
649
  int?: boolean | undefined;
649
650
  } | {
650
651
  type: "boolean";
651
- default?: boolean | undefined;
652
652
  optional?: boolean | undefined;
653
+ default?: boolean | undefined;
653
654
  } | {
654
655
  values: string[];
655
656
  type: "enum";
656
- default?: string | undefined;
657
657
  optional?: boolean | undefined;
658
+ default?: string | undefined;
658
659
  })> | undefined;
659
660
  }>>>;
660
661
  session: z.ZodOptional<z.ZodObject<{
@@ -668,58 +669,58 @@ export declare const AstroConfigSchema: z.ZodObject<{
668
669
  sameSite: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["strict", "lax", "none"]>, z.ZodBoolean]>>;
669
670
  secure: z.ZodOptional<z.ZodBoolean>;
670
671
  }, "strip", z.ZodTypeAny, {
671
- domain?: string | undefined;
672
+ name?: string | undefined;
672
673
  path?: string | undefined;
674
+ domain?: string | undefined;
673
675
  maxAge?: number | undefined;
674
- sameSite?: boolean | "lax" | "strict" | "none" | undefined;
676
+ sameSite?: boolean | "strict" | "none" | "lax" | undefined;
675
677
  secure?: boolean | undefined;
676
- name?: string | undefined;
677
678
  }, {
678
- domain?: string | undefined;
679
+ name?: string | undefined;
679
680
  path?: string | undefined;
681
+ domain?: string | undefined;
680
682
  maxAge?: number | undefined;
681
- sameSite?: boolean | "lax" | "strict" | "none" | undefined;
683
+ sameSite?: boolean | "strict" | "none" | "lax" | undefined;
682
684
  secure?: boolean | undefined;
683
- name?: string | undefined;
684
685
  }>, z.ZodString]>, {
685
- domain?: string | undefined;
686
+ name?: string | undefined;
686
687
  path?: string | undefined;
688
+ domain?: string | undefined;
687
689
  maxAge?: number | undefined;
688
- sameSite?: boolean | "lax" | "strict" | "none" | undefined;
690
+ sameSite?: boolean | "strict" | "none" | "lax" | undefined;
689
691
  secure?: boolean | undefined;
690
- name?: string | undefined;
691
692
  }, string | {
692
- domain?: string | undefined;
693
+ name?: string | undefined;
693
694
  path?: string | undefined;
695
+ domain?: string | undefined;
694
696
  maxAge?: number | undefined;
695
- sameSite?: boolean | "lax" | "strict" | "none" | undefined;
697
+ sameSite?: boolean | "strict" | "none" | "lax" | undefined;
696
698
  secure?: boolean | undefined;
697
- name?: string | undefined;
698
699
  }>>;
699
700
  ttl: z.ZodOptional<z.ZodNumber>;
700
701
  }, "strip", z.ZodTypeAny, {
701
702
  driver: string;
703
+ options?: Record<string, any> | undefined;
702
704
  cookie?: {
703
- domain?: string | undefined;
705
+ name?: string | undefined;
704
706
  path?: string | undefined;
707
+ domain?: string | undefined;
705
708
  maxAge?: number | undefined;
706
- sameSite?: boolean | "lax" | "strict" | "none" | undefined;
709
+ sameSite?: boolean | "strict" | "none" | "lax" | undefined;
707
710
  secure?: boolean | undefined;
708
- name?: string | undefined;
709
711
  } | undefined;
710
- options?: Record<string, any> | undefined;
711
712
  ttl?: number | undefined;
712
713
  }, {
713
714
  driver: string;
715
+ options?: Record<string, any> | undefined;
714
716
  cookie?: string | {
715
- domain?: string | undefined;
717
+ name?: string | undefined;
716
718
  path?: string | undefined;
719
+ domain?: string | undefined;
717
720
  maxAge?: number | undefined;
718
- sameSite?: boolean | "lax" | "strict" | "none" | undefined;
721
+ sameSite?: boolean | "strict" | "none" | "lax" | undefined;
719
722
  secure?: boolean | undefined;
720
- name?: string | undefined;
721
723
  } | undefined;
722
- options?: Record<string, any> | undefined;
723
724
  ttl?: number | undefined;
724
725
  }>>;
725
726
  experimental: z.ZodDefault<z.ZodObject<{
@@ -763,9 +764,9 @@ export declare const AstroConfigSchema: z.ZodObject<{
763
764
  url: string | URL;
764
765
  tech?: string | undefined;
765
766
  })[]];
766
- style?: "normal" | "italic" | "oblique" | undefined;
767
767
  weight?: string | number | undefined;
768
- display?: "fallback" | "auto" | "optional" | "block" | "swap" | undefined;
768
+ style?: "normal" | "italic" | "oblique" | undefined;
769
+ display?: "auto" | "block" | "swap" | "fallback" | "optional" | undefined;
769
770
  stretch?: string | undefined;
770
771
  featureSettings?: string | undefined;
771
772
  variationSettings?: string | undefined;
@@ -778,9 +779,9 @@ export declare const AstroConfigSchema: z.ZodObject<{
778
779
  url: string | URL;
779
780
  tech?: string | undefined;
780
781
  })[]];
781
- style?: "normal" | "italic" | "oblique" | undefined;
782
782
  weight?: string | number | undefined;
783
- display?: "fallback" | "auto" | "optional" | "block" | "swap" | undefined;
783
+ style?: "normal" | "italic" | "oblique" | undefined;
784
+ display?: "auto" | "block" | "swap" | "fallback" | "optional" | undefined;
784
785
  stretch?: string | undefined;
785
786
  featureSettings?: string | undefined;
786
787
  variationSettings?: string | undefined;
@@ -798,9 +799,9 @@ export declare const AstroConfigSchema: z.ZodObject<{
798
799
  url: string | URL;
799
800
  tech?: string | undefined;
800
801
  })[]];
801
- style?: "normal" | "italic" | "oblique" | undefined;
802
802
  weight?: string | number | undefined;
803
- display?: "fallback" | "auto" | "optional" | "block" | "swap" | undefined;
803
+ style?: "normal" | "italic" | "oblique" | undefined;
804
+ display?: "auto" | "block" | "swap" | "fallback" | "optional" | undefined;
804
805
  stretch?: string | undefined;
805
806
  featureSettings?: string | undefined;
806
807
  variationSettings?: string | undefined;
@@ -813,9 +814,9 @@ export declare const AstroConfigSchema: z.ZodObject<{
813
814
  url: string | URL;
814
815
  tech?: string | undefined;
815
816
  })[]];
816
- style?: "normal" | "italic" | "oblique" | undefined;
817
817
  weight?: string | number | undefined;
818
- display?: "fallback" | "auto" | "optional" | "block" | "swap" | undefined;
818
+ style?: "normal" | "italic" | "oblique" | undefined;
819
+ display?: "auto" | "block" | "swap" | "fallback" | "optional" | undefined;
819
820
  stretch?: string | undefined;
820
821
  featureSettings?: string | undefined;
821
822
  variationSettings?: string | undefined;
@@ -835,9 +836,9 @@ export declare const AstroConfigSchema: z.ZodObject<{
835
836
  url: string | URL;
836
837
  tech?: string | undefined;
837
838
  })[]];
838
- style?: "normal" | "italic" | "oblique" | undefined;
839
839
  weight?: string | number | undefined;
840
- display?: "fallback" | "auto" | "optional" | "block" | "swap" | undefined;
840
+ style?: "normal" | "italic" | "oblique" | undefined;
841
+ display?: "auto" | "block" | "swap" | "fallback" | "optional" | undefined;
841
842
  stretch?: string | undefined;
842
843
  featureSettings?: string | undefined;
843
844
  variationSettings?: string | undefined;
@@ -850,9 +851,9 @@ export declare const AstroConfigSchema: z.ZodObject<{
850
851
  url: string | URL;
851
852
  tech?: string | undefined;
852
853
  })[]];
853
- style?: "normal" | "italic" | "oblique" | undefined;
854
854
  weight?: string | number | undefined;
855
- display?: "fallback" | "auto" | "optional" | "block" | "swap" | undefined;
855
+ style?: "normal" | "italic" | "oblique" | undefined;
856
+ display?: "auto" | "block" | "swap" | "fallback" | "optional" | undefined;
856
857
  stretch?: string | undefined;
857
858
  featureSettings?: string | undefined;
858
859
  variationSettings?: string | undefined;
@@ -870,7 +871,7 @@ export declare const AstroConfigSchema: z.ZodObject<{
870
871
  stretch: z.ZodOptional<z.ZodString>;
871
872
  featureSettings: z.ZodOptional<z.ZodString>;
872
873
  variationSettings: z.ZodOptional<z.ZodString>;
873
- }, "style" | "weight">>, {
874
+ }, "weight" | "style">>, {
874
875
  fallbacks: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
875
876
  optimizedFallbacks: z.ZodOptional<z.ZodBoolean>;
876
877
  }>, {
@@ -895,16 +896,16 @@ export declare const AstroConfigSchema: z.ZodObject<{
895
896
  entrypoint: string | URL;
896
897
  config?: Record<string, any> | undefined;
897
898
  };
899
+ weights?: [string | number, ...(string | number)[]] | undefined;
900
+ styles?: ["normal" | "italic" | "oblique", ...("normal" | "italic" | "oblique")[]] | undefined;
901
+ subsets?: [string, ...string[]] | undefined;
898
902
  fallbacks?: string[] | undefined;
899
903
  optimizedFallbacks?: boolean | undefined;
900
- display?: "fallback" | "auto" | "optional" | "block" | "swap" | undefined;
904
+ display?: "auto" | "block" | "swap" | "fallback" | "optional" | undefined;
901
905
  stretch?: string | undefined;
902
906
  featureSettings?: string | undefined;
903
907
  variationSettings?: string | undefined;
904
908
  unicodeRange?: [string, ...string[]] | undefined;
905
- weights?: [string | number, ...(string | number)[]] | undefined;
906
- styles?: ["normal" | "italic" | "oblique", ...("normal" | "italic" | "oblique")[]] | undefined;
907
- subsets?: [string, ...string[]] | undefined;
908
909
  }, {
909
910
  name: string;
910
911
  cssVariable: string;
@@ -912,24 +913,105 @@ export declare const AstroConfigSchema: z.ZodObject<{
912
913
  entrypoint: string | URL;
913
914
  config?: Record<string, any> | undefined;
914
915
  };
916
+ weights?: [string | number, ...(string | number)[]] | undefined;
917
+ styles?: ["normal" | "italic" | "oblique", ...("normal" | "italic" | "oblique")[]] | undefined;
918
+ subsets?: [string, ...string[]] | undefined;
915
919
  fallbacks?: string[] | undefined;
916
920
  optimizedFallbacks?: boolean | undefined;
917
- display?: "fallback" | "auto" | "optional" | "block" | "swap" | undefined;
921
+ display?: "auto" | "block" | "swap" | "fallback" | "optional" | undefined;
918
922
  stretch?: string | undefined;
919
923
  featureSettings?: string | undefined;
920
924
  variationSettings?: string | undefined;
921
925
  unicodeRange?: [string, ...string[]] | undefined;
922
- weights?: [string | number, ...(string | number)[]] | undefined;
923
- styles?: ["normal" | "italic" | "oblique", ...("normal" | "italic" | "oblique")[]] | undefined;
924
- subsets?: [string, ...string[]] | undefined;
925
926
  }>]>, "many">>;
927
+ csp: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodDefault<z.ZodOptional<z.ZodBoolean>>, z.ZodObject<{
928
+ algorithm: z.ZodDefault<z.ZodOptional<z.ZodEnum<["SHA-256", "SHA-384", "SHA-512"]>>>;
929
+ directives: z.ZodOptional<z.ZodArray<z.ZodType<`base-uri ${string}` | `child-src ${string}` | `connect-src ${string}` | `default-src ${string}` | `fenced-frame-src ${string}` | `font-src ${string}` | `form-action ${string}` | `frame-ancestors ${string}` | `frame-src ${string}` | `img-src ${string}` | `manifest-src ${string}` | `media-src ${string}` | `object-src ${string}` | `referrer ${string}` | `report-to ${string}` | `require-trusted-types-for ${string}` | `sandbox ${string}` | `trusted-types ${string}` | `upgrade-insecure-requests ${string}` | `worker-src ${string}`, z.ZodTypeDef, `base-uri ${string}` | `child-src ${string}` | `connect-src ${string}` | `default-src ${string}` | `fenced-frame-src ${string}` | `font-src ${string}` | `form-action ${string}` | `frame-ancestors ${string}` | `frame-src ${string}` | `img-src ${string}` | `manifest-src ${string}` | `media-src ${string}` | `object-src ${string}` | `referrer ${string}` | `report-to ${string}` | `require-trusted-types-for ${string}` | `sandbox ${string}` | `trusted-types ${string}` | `upgrade-insecure-requests ${string}` | `worker-src ${string}`>, "many">>;
930
+ styleDirective: z.ZodOptional<z.ZodObject<{
931
+ resources: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
932
+ hashes: z.ZodOptional<z.ZodArray<z.ZodType<`sha256-${string}` | `sha384-${string}` | `sha512-${string}`, z.ZodTypeDef, `sha256-${string}` | `sha384-${string}` | `sha512-${string}`>, "many">>;
933
+ }, "strip", z.ZodTypeAny, {
934
+ resources?: string[] | undefined;
935
+ hashes?: (`sha256-${string}` | `sha384-${string}` | `sha512-${string}`)[] | undefined;
936
+ }, {
937
+ resources?: string[] | undefined;
938
+ hashes?: (`sha256-${string}` | `sha384-${string}` | `sha512-${string}`)[] | undefined;
939
+ }>>;
940
+ scriptDirective: z.ZodOptional<z.ZodObject<{
941
+ resources: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
942
+ hashes: z.ZodOptional<z.ZodArray<z.ZodType<`sha256-${string}` | `sha384-${string}` | `sha512-${string}`, z.ZodTypeDef, `sha256-${string}` | `sha384-${string}` | `sha512-${string}`>, "many">>;
943
+ strictDynamic: z.ZodOptional<z.ZodBoolean>;
944
+ }, "strip", z.ZodTypeAny, {
945
+ resources?: string[] | undefined;
946
+ hashes?: (`sha256-${string}` | `sha384-${string}` | `sha512-${string}`)[] | undefined;
947
+ strictDynamic?: boolean | undefined;
948
+ }, {
949
+ resources?: string[] | undefined;
950
+ hashes?: (`sha256-${string}` | `sha384-${string}` | `sha512-${string}`)[] | undefined;
951
+ strictDynamic?: boolean | undefined;
952
+ }>>;
953
+ }, "strip", z.ZodTypeAny, {
954
+ algorithm: "SHA-256" | "SHA-384" | "SHA-512";
955
+ directives?: (`base-uri ${string}` | `child-src ${string}` | `connect-src ${string}` | `default-src ${string}` | `fenced-frame-src ${string}` | `font-src ${string}` | `form-action ${string}` | `frame-ancestors ${string}` | `frame-src ${string}` | `img-src ${string}` | `manifest-src ${string}` | `media-src ${string}` | `object-src ${string}` | `referrer ${string}` | `report-to ${string}` | `require-trusted-types-for ${string}` | `sandbox ${string}` | `trusted-types ${string}` | `upgrade-insecure-requests ${string}` | `worker-src ${string}`)[] | undefined;
956
+ styleDirective?: {
957
+ resources?: string[] | undefined;
958
+ hashes?: (`sha256-${string}` | `sha384-${string}` | `sha512-${string}`)[] | undefined;
959
+ } | undefined;
960
+ scriptDirective?: {
961
+ resources?: string[] | undefined;
962
+ hashes?: (`sha256-${string}` | `sha384-${string}` | `sha512-${string}`)[] | undefined;
963
+ strictDynamic?: boolean | undefined;
964
+ } | undefined;
965
+ }, {
966
+ algorithm?: "SHA-256" | "SHA-384" | "SHA-512" | undefined;
967
+ directives?: (`base-uri ${string}` | `child-src ${string}` | `connect-src ${string}` | `default-src ${string}` | `fenced-frame-src ${string}` | `font-src ${string}` | `form-action ${string}` | `frame-ancestors ${string}` | `frame-src ${string}` | `img-src ${string}` | `manifest-src ${string}` | `media-src ${string}` | `object-src ${string}` | `referrer ${string}` | `report-to ${string}` | `require-trusted-types-for ${string}` | `sandbox ${string}` | `trusted-types ${string}` | `upgrade-insecure-requests ${string}` | `worker-src ${string}`)[] | undefined;
968
+ styleDirective?: {
969
+ resources?: string[] | undefined;
970
+ hashes?: (`sha256-${string}` | `sha384-${string}` | `sha512-${string}`)[] | undefined;
971
+ } | undefined;
972
+ scriptDirective?: {
973
+ resources?: string[] | undefined;
974
+ hashes?: (`sha256-${string}` | `sha384-${string}` | `sha512-${string}`)[] | undefined;
975
+ strictDynamic?: boolean | undefined;
976
+ } | undefined;
977
+ }>]>>>;
926
978
  }, "strict", z.ZodTypeAny, {
927
979
  clientPrerender: boolean;
928
980
  contentIntellisense: boolean;
929
981
  responsiveImages: boolean;
930
982
  headingIdCompat: boolean;
931
983
  preserveScriptOrder: boolean;
984
+ csp: boolean | {
985
+ algorithm: "SHA-256" | "SHA-384" | "SHA-512";
986
+ directives?: (`base-uri ${string}` | `child-src ${string}` | `connect-src ${string}` | `default-src ${string}` | `fenced-frame-src ${string}` | `font-src ${string}` | `form-action ${string}` | `frame-ancestors ${string}` | `frame-src ${string}` | `img-src ${string}` | `manifest-src ${string}` | `media-src ${string}` | `object-src ${string}` | `referrer ${string}` | `report-to ${string}` | `require-trusted-types-for ${string}` | `sandbox ${string}` | `trusted-types ${string}` | `upgrade-insecure-requests ${string}` | `worker-src ${string}`)[] | undefined;
987
+ styleDirective?: {
988
+ resources?: string[] | undefined;
989
+ hashes?: (`sha256-${string}` | `sha384-${string}` | `sha512-${string}`)[] | undefined;
990
+ } | undefined;
991
+ scriptDirective?: {
992
+ resources?: string[] | undefined;
993
+ hashes?: (`sha256-${string}` | `sha384-${string}` | `sha512-${string}`)[] | undefined;
994
+ strictDynamic?: boolean | undefined;
995
+ } | undefined;
996
+ };
932
997
  fonts?: ({
998
+ name: string;
999
+ cssVariable: string;
1000
+ provider: {
1001
+ entrypoint: string | URL;
1002
+ config?: Record<string, any> | undefined;
1003
+ };
1004
+ weights?: [string | number, ...(string | number)[]] | undefined;
1005
+ styles?: ["normal" | "italic" | "oblique", ...("normal" | "italic" | "oblique")[]] | undefined;
1006
+ subsets?: [string, ...string[]] | undefined;
1007
+ fallbacks?: string[] | undefined;
1008
+ optimizedFallbacks?: boolean | undefined;
1009
+ display?: "auto" | "block" | "swap" | "fallback" | "optional" | undefined;
1010
+ stretch?: string | undefined;
1011
+ featureSettings?: string | undefined;
1012
+ variationSettings?: string | undefined;
1013
+ unicodeRange?: [string, ...string[]] | undefined;
1014
+ } | {
933
1015
  name: string;
934
1016
  cssVariable: string;
935
1017
  provider: "local";
@@ -941,9 +1023,9 @@ export declare const AstroConfigSchema: z.ZodObject<{
941
1023
  url: string | URL;
942
1024
  tech?: string | undefined;
943
1025
  })[]];
944
- style?: "normal" | "italic" | "oblique" | undefined;
945
1026
  weight?: string | number | undefined;
946
- display?: "fallback" | "auto" | "optional" | "block" | "swap" | undefined;
1027
+ style?: "normal" | "italic" | "oblique" | undefined;
1028
+ display?: "auto" | "block" | "swap" | "fallback" | "optional" | undefined;
947
1029
  stretch?: string | undefined;
948
1030
  featureSettings?: string | undefined;
949
1031
  variationSettings?: string | undefined;
@@ -956,9 +1038,9 @@ export declare const AstroConfigSchema: z.ZodObject<{
956
1038
  url: string | URL;
957
1039
  tech?: string | undefined;
958
1040
  })[]];
959
- style?: "normal" | "italic" | "oblique" | undefined;
960
1041
  weight?: string | number | undefined;
961
- display?: "fallback" | "auto" | "optional" | "block" | "swap" | undefined;
1042
+ style?: "normal" | "italic" | "oblique" | undefined;
1043
+ display?: "auto" | "block" | "swap" | "fallback" | "optional" | undefined;
962
1044
  stretch?: string | undefined;
963
1045
  featureSettings?: string | undefined;
964
1046
  variationSettings?: string | undefined;
@@ -966,31 +1048,26 @@ export declare const AstroConfigSchema: z.ZodObject<{
966
1048
  }[]];
967
1049
  fallbacks?: string[] | undefined;
968
1050
  optimizedFallbacks?: boolean | undefined;
969
- } | {
1051
+ })[] | undefined;
1052
+ }, {
1053
+ fonts?: ({
970
1054
  name: string;
971
1055
  cssVariable: string;
972
1056
  provider: {
973
1057
  entrypoint: string | URL;
974
1058
  config?: Record<string, any> | undefined;
975
1059
  };
1060
+ weights?: [string | number, ...(string | number)[]] | undefined;
1061
+ styles?: ["normal" | "italic" | "oblique", ...("normal" | "italic" | "oblique")[]] | undefined;
1062
+ subsets?: [string, ...string[]] | undefined;
976
1063
  fallbacks?: string[] | undefined;
977
1064
  optimizedFallbacks?: boolean | undefined;
978
- display?: "fallback" | "auto" | "optional" | "block" | "swap" | undefined;
1065
+ display?: "auto" | "block" | "swap" | "fallback" | "optional" | undefined;
979
1066
  stretch?: string | undefined;
980
1067
  featureSettings?: string | undefined;
981
1068
  variationSettings?: string | undefined;
982
1069
  unicodeRange?: [string, ...string[]] | undefined;
983
- weights?: [string | number, ...(string | number)[]] | undefined;
984
- styles?: ["normal" | "italic" | "oblique", ...("normal" | "italic" | "oblique")[]] | undefined;
985
- subsets?: [string, ...string[]] | undefined;
986
- })[] | undefined;
987
- }, {
988
- clientPrerender?: boolean | undefined;
989
- contentIntellisense?: boolean | undefined;
990
- responsiveImages?: boolean | undefined;
991
- headingIdCompat?: boolean | undefined;
992
- preserveScriptOrder?: boolean | undefined;
993
- fonts?: ({
1070
+ } | {
994
1071
  name: string;
995
1072
  cssVariable: string;
996
1073
  provider: "local";
@@ -1002,9 +1079,9 @@ export declare const AstroConfigSchema: z.ZodObject<{
1002
1079
  url: string | URL;
1003
1080
  tech?: string | undefined;
1004
1081
  })[]];
1005
- style?: "normal" | "italic" | "oblique" | undefined;
1006
1082
  weight?: string | number | undefined;
1007
- display?: "fallback" | "auto" | "optional" | "block" | "swap" | undefined;
1083
+ style?: "normal" | "italic" | "oblique" | undefined;
1084
+ display?: "auto" | "block" | "swap" | "fallback" | "optional" | undefined;
1008
1085
  stretch?: string | undefined;
1009
1086
  featureSettings?: string | undefined;
1010
1087
  variationSettings?: string | undefined;
@@ -1017,9 +1094,9 @@ export declare const AstroConfigSchema: z.ZodObject<{
1017
1094
  url: string | URL;
1018
1095
  tech?: string | undefined;
1019
1096
  })[]];
1020
- style?: "normal" | "italic" | "oblique" | undefined;
1021
1097
  weight?: string | number | undefined;
1022
- display?: "fallback" | "auto" | "optional" | "block" | "swap" | undefined;
1098
+ style?: "normal" | "italic" | "oblique" | undefined;
1099
+ display?: "auto" | "block" | "swap" | "fallback" | "optional" | undefined;
1023
1100
  stretch?: string | undefined;
1024
1101
  featureSettings?: string | undefined;
1025
1102
  variationSettings?: string | undefined;
@@ -1027,24 +1104,25 @@ export declare const AstroConfigSchema: z.ZodObject<{
1027
1104
  }[]];
1028
1105
  fallbacks?: string[] | undefined;
1029
1106
  optimizedFallbacks?: boolean | undefined;
1030
- } | {
1031
- name: string;
1032
- cssVariable: string;
1033
- provider: {
1034
- entrypoint: string | URL;
1035
- config?: Record<string, any> | undefined;
1036
- };
1037
- fallbacks?: string[] | undefined;
1038
- optimizedFallbacks?: boolean | undefined;
1039
- display?: "fallback" | "auto" | "optional" | "block" | "swap" | undefined;
1040
- stretch?: string | undefined;
1041
- featureSettings?: string | undefined;
1042
- variationSettings?: string | undefined;
1043
- unicodeRange?: [string, ...string[]] | undefined;
1044
- weights?: [string | number, ...(string | number)[]] | undefined;
1045
- styles?: ["normal" | "italic" | "oblique", ...("normal" | "italic" | "oblique")[]] | undefined;
1046
- subsets?: [string, ...string[]] | undefined;
1047
1107
  })[] | undefined;
1108
+ clientPrerender?: boolean | undefined;
1109
+ contentIntellisense?: boolean | undefined;
1110
+ responsiveImages?: boolean | undefined;
1111
+ headingIdCompat?: boolean | undefined;
1112
+ preserveScriptOrder?: boolean | undefined;
1113
+ csp?: boolean | {
1114
+ algorithm?: "SHA-256" | "SHA-384" | "SHA-512" | undefined;
1115
+ directives?: (`base-uri ${string}` | `child-src ${string}` | `connect-src ${string}` | `default-src ${string}` | `fenced-frame-src ${string}` | `font-src ${string}` | `form-action ${string}` | `frame-ancestors ${string}` | `frame-src ${string}` | `img-src ${string}` | `manifest-src ${string}` | `media-src ${string}` | `object-src ${string}` | `referrer ${string}` | `report-to ${string}` | `require-trusted-types-for ${string}` | `sandbox ${string}` | `trusted-types ${string}` | `upgrade-insecure-requests ${string}` | `worker-src ${string}`)[] | undefined;
1116
+ styleDirective?: {
1117
+ resources?: string[] | undefined;
1118
+ hashes?: (`sha256-${string}` | `sha384-${string}` | `sha512-${string}`)[] | undefined;
1119
+ } | undefined;
1120
+ scriptDirective?: {
1121
+ resources?: string[] | undefined;
1122
+ hashes?: (`sha256-${string}` | `sha384-${string}` | `sha512-${string}`)[] | undefined;
1123
+ strictDynamic?: boolean | undefined;
1124
+ } | undefined;
1125
+ } | undefined;
1048
1126
  }>>;
1049
1127
  legacy: z.ZodDefault<z.ZodObject<{
1050
1128
  collections: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
@@ -1054,71 +1132,21 @@ export declare const AstroConfigSchema: z.ZodObject<{
1054
1132
  collections?: boolean | undefined;
1055
1133
  }>>;
1056
1134
  }, "strip", z.ZodTypeAny, {
1057
- trailingSlash: "never" | "ignore" | "always";
1058
- server: {
1059
- host: string | boolean;
1060
- port: number;
1061
- allowedHosts: true | string[];
1062
- open: string | boolean;
1063
- headers?: OutgoingHttpHeaders | undefined;
1064
- };
1065
- redirects: Record<string, string | {
1066
- status: 300 | 301 | 302 | 303 | 304 | 307 | 308;
1067
- destination: string;
1068
- }>;
1135
+ outDir: URL;
1136
+ root: URL;
1069
1137
  build: {
1138
+ redirects: boolean;
1139
+ assets: string;
1140
+ format: "preserve" | "file" | "directory";
1070
1141
  client: URL;
1071
- format: "file" | "directory" | "preserve";
1072
1142
  server: URL;
1073
- assets: string;
1074
1143
  serverEntry: string;
1075
- redirects: boolean;
1076
- inlineStylesheets: "never" | "always" | "auto";
1144
+ inlineStylesheets: "auto" | "never" | "always";
1077
1145
  concurrency: number;
1078
1146
  assetsPrefix?: string | ({
1079
1147
  fallback: string;
1080
1148
  } & Record<string, string>) | undefined;
1081
1149
  };
1082
- root: URL;
1083
- srcDir: URL;
1084
- publicDir: URL;
1085
- outDir: URL;
1086
- cacheDir: URL;
1087
- compressHTML: boolean;
1088
- base: string;
1089
- output: "server" | "static";
1090
- scopedStyleStrategy: "where" | "class" | "attribute";
1091
- integrations: {
1092
- name: string;
1093
- hooks: {} & {
1094
- [k: string]: unknown;
1095
- };
1096
- }[];
1097
- image: {
1098
- experimentalDefaultStyles: boolean;
1099
- endpoint: {
1100
- route: string;
1101
- entrypoint?: string | undefined;
1102
- };
1103
- service: {
1104
- entrypoint: string;
1105
- config: Record<string, any>;
1106
- };
1107
- domains: string[];
1108
- remotePatterns: {
1109
- port?: string | undefined;
1110
- protocol?: string | undefined;
1111
- hostname?: string | undefined;
1112
- pathname?: string | undefined;
1113
- }[];
1114
- experimentalLayout?: "none" | "fixed" | "constrained" | "full-width" | undefined;
1115
- experimentalObjectFit?: string | undefined;
1116
- experimentalObjectPosition?: string | undefined;
1117
- experimentalBreakpoints?: number[] | undefined;
1118
- };
1119
- devToolbar: {
1120
- enabled: boolean;
1121
- };
1122
1150
  markdown: {
1123
1151
  syntaxHighlight: false | "shiki" | "prism" | {
1124
1152
  type: "shiki" | "prism";
@@ -1140,9 +1168,10 @@ export declare const AstroConfigSchema: z.ZodObject<{
1140
1168
  smartypants: boolean;
1141
1169
  };
1142
1170
  vite: ViteUserConfig;
1143
- security: {
1144
- checkOrigin: boolean;
1145
- };
1171
+ redirects: Record<string, string | {
1172
+ status: 301 | 302 | 303 | 307 | 308 | 300 | 304;
1173
+ destination: string;
1174
+ }>;
1146
1175
  env: {
1147
1176
  validateSecrets: boolean;
1148
1177
  schema: Record<string, ({
@@ -1160,15 +1189,15 @@ export declare const AstroConfigSchema: z.ZodObject<{
1160
1189
  includes?: string | undefined;
1161
1190
  endsWith?: string | undefined;
1162
1191
  startsWith?: string | undefined;
1163
- default?: string | undefined;
1164
1192
  optional?: boolean | undefined;
1193
+ url?: boolean | undefined;
1194
+ default?: string | undefined;
1165
1195
  max?: number | undefined;
1166
1196
  min?: number | undefined;
1167
- url?: boolean | undefined;
1168
1197
  } | {
1169
1198
  type: "number";
1170
- default?: number | undefined;
1171
1199
  optional?: boolean | undefined;
1200
+ default?: number | undefined;
1172
1201
  max?: number | undefined;
1173
1202
  min?: number | undefined;
1174
1203
  gt?: number | undefined;
@@ -1176,22 +1205,101 @@ export declare const AstroConfigSchema: z.ZodObject<{
1176
1205
  int?: boolean | undefined;
1177
1206
  } | {
1178
1207
  type: "boolean";
1179
- default?: boolean | undefined;
1180
1208
  optional?: boolean | undefined;
1209
+ default?: boolean | undefined;
1181
1210
  } | {
1182
1211
  values: string[];
1183
1212
  type: "enum";
1184
- default?: string | undefined;
1185
1213
  optional?: boolean | undefined;
1214
+ default?: string | undefined;
1186
1215
  })>;
1187
1216
  };
1188
- experimental: {
1217
+ image: {
1218
+ experimentalDefaultStyles: boolean;
1219
+ endpoint: {
1220
+ route: string;
1221
+ entrypoint?: string | undefined;
1222
+ };
1223
+ service: {
1224
+ config: Record<string, any>;
1225
+ entrypoint: string;
1226
+ };
1227
+ domains: string[];
1228
+ remotePatterns: {
1229
+ port?: string | undefined;
1230
+ protocol?: string | undefined;
1231
+ hostname?: string | undefined;
1232
+ pathname?: string | undefined;
1233
+ }[];
1234
+ experimentalLayout?: "fixed" | "constrained" | "full-width" | "none" | undefined;
1235
+ experimentalObjectFit?: string | undefined;
1236
+ experimentalObjectPosition?: string | undefined;
1237
+ experimentalBreakpoints?: number[] | undefined;
1238
+ };
1239
+ server: {
1240
+ host: string | boolean;
1241
+ port: number;
1242
+ allowedHosts: true | string[];
1243
+ open: string | boolean;
1244
+ headers?: OutgoingHttpHeaders | undefined;
1245
+ };
1246
+ srcDir: URL;
1247
+ publicDir: URL;
1248
+ cacheDir: URL;
1249
+ compressHTML: boolean;
1250
+ base: string;
1251
+ trailingSlash: "never" | "ignore" | "always";
1252
+ output: "server" | "static";
1253
+ scopedStyleStrategy: "where" | "class" | "attribute";
1254
+ integrations: {
1255
+ name: string;
1256
+ hooks: {} & {
1257
+ [k: string]: unknown;
1258
+ };
1259
+ }[];
1260
+ devToolbar: {
1261
+ enabled: boolean;
1262
+ };
1263
+ security: {
1264
+ checkOrigin: boolean;
1265
+ };
1266
+ experimental: {
1189
1267
  clientPrerender: boolean;
1190
1268
  contentIntellisense: boolean;
1191
1269
  responsiveImages: boolean;
1192
1270
  headingIdCompat: boolean;
1193
1271
  preserveScriptOrder: boolean;
1272
+ csp: boolean | {
1273
+ algorithm: "SHA-256" | "SHA-384" | "SHA-512";
1274
+ directives?: (`base-uri ${string}` | `child-src ${string}` | `connect-src ${string}` | `default-src ${string}` | `fenced-frame-src ${string}` | `font-src ${string}` | `form-action ${string}` | `frame-ancestors ${string}` | `frame-src ${string}` | `img-src ${string}` | `manifest-src ${string}` | `media-src ${string}` | `object-src ${string}` | `referrer ${string}` | `report-to ${string}` | `require-trusted-types-for ${string}` | `sandbox ${string}` | `trusted-types ${string}` | `upgrade-insecure-requests ${string}` | `worker-src ${string}`)[] | undefined;
1275
+ styleDirective?: {
1276
+ resources?: string[] | undefined;
1277
+ hashes?: (`sha256-${string}` | `sha384-${string}` | `sha512-${string}`)[] | undefined;
1278
+ } | undefined;
1279
+ scriptDirective?: {
1280
+ resources?: string[] | undefined;
1281
+ hashes?: (`sha256-${string}` | `sha384-${string}` | `sha512-${string}`)[] | undefined;
1282
+ strictDynamic?: boolean | undefined;
1283
+ } | undefined;
1284
+ };
1194
1285
  fonts?: ({
1286
+ name: string;
1287
+ cssVariable: string;
1288
+ provider: {
1289
+ entrypoint: string | URL;
1290
+ config?: Record<string, any> | undefined;
1291
+ };
1292
+ weights?: [string | number, ...(string | number)[]] | undefined;
1293
+ styles?: ["normal" | "italic" | "oblique", ...("normal" | "italic" | "oblique")[]] | undefined;
1294
+ subsets?: [string, ...string[]] | undefined;
1295
+ fallbacks?: string[] | undefined;
1296
+ optimizedFallbacks?: boolean | undefined;
1297
+ display?: "auto" | "block" | "swap" | "fallback" | "optional" | undefined;
1298
+ stretch?: string | undefined;
1299
+ featureSettings?: string | undefined;
1300
+ variationSettings?: string | undefined;
1301
+ unicodeRange?: [string, ...string[]] | undefined;
1302
+ } | {
1195
1303
  name: string;
1196
1304
  cssVariable: string;
1197
1305
  provider: "local";
@@ -1203,9 +1311,9 @@ export declare const AstroConfigSchema: z.ZodObject<{
1203
1311
  url: string | URL;
1204
1312
  tech?: string | undefined;
1205
1313
  })[]];
1206
- style?: "normal" | "italic" | "oblique" | undefined;
1207
1314
  weight?: string | number | undefined;
1208
- display?: "fallback" | "auto" | "optional" | "block" | "swap" | undefined;
1315
+ style?: "normal" | "italic" | "oblique" | undefined;
1316
+ display?: "auto" | "block" | "swap" | "fallback" | "optional" | undefined;
1209
1317
  stretch?: string | undefined;
1210
1318
  featureSettings?: string | undefined;
1211
1319
  variationSettings?: string | undefined;
@@ -1218,9 +1326,9 @@ export declare const AstroConfigSchema: z.ZodObject<{
1218
1326
  url: string | URL;
1219
1327
  tech?: string | undefined;
1220
1328
  })[]];
1221
- style?: "normal" | "italic" | "oblique" | undefined;
1222
1329
  weight?: string | number | undefined;
1223
- display?: "fallback" | "auto" | "optional" | "block" | "swap" | undefined;
1330
+ style?: "normal" | "italic" | "oblique" | undefined;
1331
+ display?: "auto" | "block" | "swap" | "fallback" | "optional" | undefined;
1224
1332
  stretch?: string | undefined;
1225
1333
  featureSettings?: string | undefined;
1226
1334
  variationSettings?: string | undefined;
@@ -1228,38 +1336,34 @@ export declare const AstroConfigSchema: z.ZodObject<{
1228
1336
  }[]];
1229
1337
  fallbacks?: string[] | undefined;
1230
1338
  optimizedFallbacks?: boolean | undefined;
1231
- } | {
1232
- name: string;
1233
- cssVariable: string;
1234
- provider: {
1235
- entrypoint: string | URL;
1236
- config?: Record<string, any> | undefined;
1237
- };
1238
- fallbacks?: string[] | undefined;
1239
- optimizedFallbacks?: boolean | undefined;
1240
- display?: "fallback" | "auto" | "optional" | "block" | "swap" | undefined;
1241
- stretch?: string | undefined;
1242
- featureSettings?: string | undefined;
1243
- variationSettings?: string | undefined;
1244
- unicodeRange?: [string, ...string[]] | undefined;
1245
- weights?: [string | number, ...(string | number)[]] | undefined;
1246
- styles?: ["normal" | "italic" | "oblique", ...("normal" | "italic" | "oblique")[]] | undefined;
1247
- subsets?: [string, ...string[]] | undefined;
1248
1339
  })[] | undefined;
1249
1340
  };
1250
1341
  legacy: {
1251
1342
  collections: boolean;
1252
1343
  };
1253
- site?: string | undefined;
1344
+ session?: {
1345
+ driver: string;
1346
+ options?: Record<string, any> | undefined;
1347
+ cookie?: {
1348
+ name?: string | undefined;
1349
+ path?: string | undefined;
1350
+ domain?: string | undefined;
1351
+ maxAge?: number | undefined;
1352
+ sameSite?: boolean | "strict" | "none" | "lax" | undefined;
1353
+ secure?: boolean | undefined;
1354
+ } | undefined;
1355
+ ttl?: number | undefined;
1356
+ } | undefined;
1254
1357
  adapter?: {
1255
1358
  name: string;
1256
1359
  hooks: {} & {
1257
1360
  [k: string]: unknown;
1258
1361
  };
1259
1362
  } | undefined;
1363
+ site?: string | undefined;
1260
1364
  prefetch?: boolean | {
1261
1365
  prefetchAll?: boolean | undefined;
1262
- defaultStrategy?: "load" | "tap" | "hover" | "viewport" | undefined;
1366
+ defaultStrategy?: "tap" | "hover" | "viewport" | "load" | undefined;
1263
1367
  } | undefined;
1264
1368
  i18n?: {
1265
1369
  defaultLocale: string;
@@ -1275,83 +1379,22 @@ export declare const AstroConfigSchema: z.ZodObject<{
1275
1379
  fallback?: Record<string, string> | undefined;
1276
1380
  domains?: Record<string, string> | undefined;
1277
1381
  } | undefined;
1278
- session?: {
1279
- driver: string;
1280
- cookie?: {
1281
- domain?: string | undefined;
1282
- path?: string | undefined;
1283
- maxAge?: number | undefined;
1284
- sameSite?: boolean | "lax" | "strict" | "none" | undefined;
1285
- secure?: boolean | undefined;
1286
- name?: string | undefined;
1287
- } | undefined;
1288
- options?: Record<string, any> | undefined;
1289
- ttl?: number | undefined;
1290
- } | undefined;
1291
1382
  }, {
1292
- trailingSlash?: "never" | "ignore" | "always" | undefined;
1293
- server?: unknown;
1294
- redirects?: Record<string, string | {
1295
- status: 300 | 301 | 302 | 303 | 304 | 307 | 308;
1296
- destination: string;
1297
- }> | undefined;
1383
+ outDir?: string | undefined;
1384
+ root?: string | undefined;
1298
1385
  build?: {
1386
+ redirects?: boolean | undefined;
1387
+ assets?: string | undefined;
1388
+ format?: "preserve" | "file" | "directory" | undefined;
1299
1389
  client?: string | undefined;
1300
- format?: "file" | "directory" | "preserve" | undefined;
1301
1390
  server?: string | undefined;
1302
- assets?: string | undefined;
1303
1391
  serverEntry?: string | undefined;
1304
- redirects?: boolean | undefined;
1305
- inlineStylesheets?: "never" | "always" | "auto" | undefined;
1392
+ inlineStylesheets?: "auto" | "never" | "always" | undefined;
1306
1393
  concurrency?: number | undefined;
1307
1394
  assetsPrefix?: string | ({
1308
1395
  fallback: string;
1309
1396
  } & Record<string, string>) | undefined;
1310
1397
  } | undefined;
1311
- root?: string | undefined;
1312
- srcDir?: string | undefined;
1313
- publicDir?: string | undefined;
1314
- outDir?: string | undefined;
1315
- cacheDir?: string | undefined;
1316
- site?: string | undefined;
1317
- compressHTML?: boolean | undefined;
1318
- base?: string | undefined;
1319
- output?: "server" | "static" | undefined;
1320
- scopedStyleStrategy?: "where" | "class" | "attribute" | undefined;
1321
- adapter?: {
1322
- name: string;
1323
- hooks?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1324
- } | undefined;
1325
- integrations?: unknown;
1326
- prefetch?: boolean | {
1327
- prefetchAll?: boolean | undefined;
1328
- defaultStrategy?: "load" | "tap" | "hover" | "viewport" | undefined;
1329
- } | undefined;
1330
- image?: {
1331
- experimentalDefaultStyles?: boolean | undefined;
1332
- endpoint?: {
1333
- entrypoint?: string | undefined;
1334
- route?: string | undefined;
1335
- } | undefined;
1336
- service?: {
1337
- entrypoint?: string | undefined;
1338
- config?: Record<string, any> | undefined;
1339
- } | undefined;
1340
- domains?: string[] | undefined;
1341
- remotePatterns?: {
1342
- port?: string | undefined;
1343
- protocol?: string | undefined;
1344
- hostname?: string | undefined;
1345
- pathname?: string | undefined;
1346
- }[] | undefined;
1347
- experimentalLayout?: "none" | "fixed" | "constrained" | "full-width" | undefined;
1348
- experimentalObjectFit?: string | undefined;
1349
- experimentalObjectPosition?: string | undefined;
1350
- experimentalBreakpoints?: number[] | undefined;
1351
- } | undefined;
1352
- devToolbar?: {
1353
- enabled?: boolean | undefined;
1354
- } | undefined;
1355
1398
  markdown?: {
1356
1399
  syntaxHighlight?: false | "shiki" | "prism" | {
1357
1400
  type?: "shiki" | "prism" | undefined;
@@ -1373,22 +1416,22 @@ export declare const AstroConfigSchema: z.ZodObject<{
1373
1416
  smartypants?: boolean | undefined;
1374
1417
  } | undefined;
1375
1418
  vite?: ViteUserConfig | undefined;
1376
- i18n?: {
1377
- defaultLocale: string;
1378
- locales: (string | {
1379
- path: string;
1380
- codes: [string, ...string[]];
1381
- })[];
1382
- fallback?: Record<string, string> | undefined;
1383
- domains?: Record<string, string> | undefined;
1384
- routing?: "manual" | {
1385
- prefixDefaultLocale?: boolean | undefined;
1386
- redirectToDefaultLocale?: boolean | undefined;
1387
- fallbackType?: "redirect" | "rewrite" | undefined;
1419
+ redirects?: Record<string, string | {
1420
+ status: 301 | 302 | 303 | 307 | 308 | 300 | 304;
1421
+ destination: string;
1422
+ }> | undefined;
1423
+ session?: {
1424
+ driver: string;
1425
+ options?: Record<string, any> | undefined;
1426
+ cookie?: string | {
1427
+ name?: string | undefined;
1428
+ path?: string | undefined;
1429
+ domain?: string | undefined;
1430
+ maxAge?: number | undefined;
1431
+ sameSite?: boolean | "strict" | "none" | "lax" | undefined;
1432
+ secure?: boolean | undefined;
1388
1433
  } | undefined;
1389
- } | undefined;
1390
- security?: {
1391
- checkOrigin?: boolean | undefined;
1434
+ ttl?: number | undefined;
1392
1435
  } | undefined;
1393
1436
  env?: {
1394
1437
  validateSecrets?: boolean | undefined;
@@ -1407,15 +1450,15 @@ export declare const AstroConfigSchema: z.ZodObject<{
1407
1450
  includes?: string | undefined;
1408
1451
  endsWith?: string | undefined;
1409
1452
  startsWith?: string | undefined;
1410
- default?: string | undefined;
1411
1453
  optional?: boolean | undefined;
1454
+ url?: boolean | undefined;
1455
+ default?: string | undefined;
1412
1456
  max?: number | undefined;
1413
1457
  min?: number | undefined;
1414
- url?: boolean | undefined;
1415
1458
  } | {
1416
1459
  type: "number";
1417
- default?: number | undefined;
1418
1460
  optional?: boolean | undefined;
1461
+ default?: number | undefined;
1419
1462
  max?: number | undefined;
1420
1463
  min?: number | undefined;
1421
1464
  gt?: number | undefined;
@@ -1423,35 +1466,95 @@ export declare const AstroConfigSchema: z.ZodObject<{
1423
1466
  int?: boolean | undefined;
1424
1467
  } | {
1425
1468
  type: "boolean";
1426
- default?: boolean | undefined;
1427
1469
  optional?: boolean | undefined;
1470
+ default?: boolean | undefined;
1428
1471
  } | {
1429
1472
  values: string[];
1430
1473
  type: "enum";
1431
- default?: string | undefined;
1432
1474
  optional?: boolean | undefined;
1475
+ default?: string | undefined;
1433
1476
  })> | undefined;
1434
1477
  } | undefined;
1435
- session?: {
1436
- driver: string;
1437
- cookie?: string | {
1438
- domain?: string | undefined;
1439
- path?: string | undefined;
1440
- maxAge?: number | undefined;
1441
- sameSite?: boolean | "lax" | "strict" | "none" | undefined;
1442
- secure?: boolean | undefined;
1443
- name?: string | undefined;
1478
+ adapter?: {
1479
+ name: string;
1480
+ hooks?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1481
+ } | undefined;
1482
+ image?: {
1483
+ experimentalDefaultStyles?: boolean | undefined;
1484
+ endpoint?: {
1485
+ entrypoint?: string | undefined;
1486
+ route?: string | undefined;
1444
1487
  } | undefined;
1445
- options?: Record<string, any> | undefined;
1446
- ttl?: number | undefined;
1488
+ service?: {
1489
+ config?: Record<string, any> | undefined;
1490
+ entrypoint?: string | undefined;
1491
+ } | undefined;
1492
+ domains?: string[] | undefined;
1493
+ remotePatterns?: {
1494
+ port?: string | undefined;
1495
+ protocol?: string | undefined;
1496
+ hostname?: string | undefined;
1497
+ pathname?: string | undefined;
1498
+ }[] | undefined;
1499
+ experimentalLayout?: "fixed" | "constrained" | "full-width" | "none" | undefined;
1500
+ experimentalObjectFit?: string | undefined;
1501
+ experimentalObjectPosition?: string | undefined;
1502
+ experimentalBreakpoints?: number[] | undefined;
1503
+ } | undefined;
1504
+ server?: unknown;
1505
+ srcDir?: string | undefined;
1506
+ publicDir?: string | undefined;
1507
+ cacheDir?: string | undefined;
1508
+ site?: string | undefined;
1509
+ compressHTML?: boolean | undefined;
1510
+ base?: string | undefined;
1511
+ trailingSlash?: "never" | "ignore" | "always" | undefined;
1512
+ output?: "server" | "static" | undefined;
1513
+ scopedStyleStrategy?: "where" | "class" | "attribute" | undefined;
1514
+ integrations?: unknown;
1515
+ prefetch?: boolean | {
1516
+ prefetchAll?: boolean | undefined;
1517
+ defaultStrategy?: "tap" | "hover" | "viewport" | "load" | undefined;
1518
+ } | undefined;
1519
+ devToolbar?: {
1520
+ enabled?: boolean | undefined;
1521
+ } | undefined;
1522
+ i18n?: {
1523
+ defaultLocale: string;
1524
+ locales: (string | {
1525
+ path: string;
1526
+ codes: [string, ...string[]];
1527
+ })[];
1528
+ fallback?: Record<string, string> | undefined;
1529
+ domains?: Record<string, string> | undefined;
1530
+ routing?: "manual" | {
1531
+ prefixDefaultLocale?: boolean | undefined;
1532
+ redirectToDefaultLocale?: boolean | undefined;
1533
+ fallbackType?: "redirect" | "rewrite" | undefined;
1534
+ } | undefined;
1535
+ } | undefined;
1536
+ security?: {
1537
+ checkOrigin?: boolean | undefined;
1447
1538
  } | undefined;
1448
1539
  experimental?: {
1449
- clientPrerender?: boolean | undefined;
1450
- contentIntellisense?: boolean | undefined;
1451
- responsiveImages?: boolean | undefined;
1452
- headingIdCompat?: boolean | undefined;
1453
- preserveScriptOrder?: boolean | undefined;
1454
1540
  fonts?: ({
1541
+ name: string;
1542
+ cssVariable: string;
1543
+ provider: {
1544
+ entrypoint: string | URL;
1545
+ config?: Record<string, any> | undefined;
1546
+ };
1547
+ weights?: [string | number, ...(string | number)[]] | undefined;
1548
+ styles?: ["normal" | "italic" | "oblique", ...("normal" | "italic" | "oblique")[]] | undefined;
1549
+ subsets?: [string, ...string[]] | undefined;
1550
+ fallbacks?: string[] | undefined;
1551
+ optimizedFallbacks?: boolean | undefined;
1552
+ display?: "auto" | "block" | "swap" | "fallback" | "optional" | undefined;
1553
+ stretch?: string | undefined;
1554
+ featureSettings?: string | undefined;
1555
+ variationSettings?: string | undefined;
1556
+ unicodeRange?: [string, ...string[]] | undefined;
1557
+ } | {
1455
1558
  name: string;
1456
1559
  cssVariable: string;
1457
1560
  provider: "local";
@@ -1463,9 +1566,9 @@ export declare const AstroConfigSchema: z.ZodObject<{
1463
1566
  url: string | URL;
1464
1567
  tech?: string | undefined;
1465
1568
  })[]];
1466
- style?: "normal" | "italic" | "oblique" | undefined;
1467
1569
  weight?: string | number | undefined;
1468
- display?: "fallback" | "auto" | "optional" | "block" | "swap" | undefined;
1570
+ style?: "normal" | "italic" | "oblique" | undefined;
1571
+ display?: "auto" | "block" | "swap" | "fallback" | "optional" | undefined;
1469
1572
  stretch?: string | undefined;
1470
1573
  featureSettings?: string | undefined;
1471
1574
  variationSettings?: string | undefined;
@@ -1478,9 +1581,9 @@ export declare const AstroConfigSchema: z.ZodObject<{
1478
1581
  url: string | URL;
1479
1582
  tech?: string | undefined;
1480
1583
  })[]];
1481
- style?: "normal" | "italic" | "oblique" | undefined;
1482
1584
  weight?: string | number | undefined;
1483
- display?: "fallback" | "auto" | "optional" | "block" | "swap" | undefined;
1585
+ style?: "normal" | "italic" | "oblique" | undefined;
1586
+ display?: "auto" | "block" | "swap" | "fallback" | "optional" | undefined;
1484
1587
  stretch?: string | undefined;
1485
1588
  featureSettings?: string | undefined;
1486
1589
  variationSettings?: string | undefined;
@@ -1488,24 +1591,25 @@ export declare const AstroConfigSchema: z.ZodObject<{
1488
1591
  }[]];
1489
1592
  fallbacks?: string[] | undefined;
1490
1593
  optimizedFallbacks?: boolean | undefined;
1491
- } | {
1492
- name: string;
1493
- cssVariable: string;
1494
- provider: {
1495
- entrypoint: string | URL;
1496
- config?: Record<string, any> | undefined;
1497
- };
1498
- fallbacks?: string[] | undefined;
1499
- optimizedFallbacks?: boolean | undefined;
1500
- display?: "fallback" | "auto" | "optional" | "block" | "swap" | undefined;
1501
- stretch?: string | undefined;
1502
- featureSettings?: string | undefined;
1503
- variationSettings?: string | undefined;
1504
- unicodeRange?: [string, ...string[]] | undefined;
1505
- weights?: [string | number, ...(string | number)[]] | undefined;
1506
- styles?: ["normal" | "italic" | "oblique", ...("normal" | "italic" | "oblique")[]] | undefined;
1507
- subsets?: [string, ...string[]] | undefined;
1508
1594
  })[] | undefined;
1595
+ clientPrerender?: boolean | undefined;
1596
+ contentIntellisense?: boolean | undefined;
1597
+ responsiveImages?: boolean | undefined;
1598
+ headingIdCompat?: boolean | undefined;
1599
+ preserveScriptOrder?: boolean | undefined;
1600
+ csp?: boolean | {
1601
+ algorithm?: "SHA-256" | "SHA-384" | "SHA-512" | undefined;
1602
+ directives?: (`base-uri ${string}` | `child-src ${string}` | `connect-src ${string}` | `default-src ${string}` | `fenced-frame-src ${string}` | `font-src ${string}` | `form-action ${string}` | `frame-ancestors ${string}` | `frame-src ${string}` | `img-src ${string}` | `manifest-src ${string}` | `media-src ${string}` | `object-src ${string}` | `referrer ${string}` | `report-to ${string}` | `require-trusted-types-for ${string}` | `sandbox ${string}` | `trusted-types ${string}` | `upgrade-insecure-requests ${string}` | `worker-src ${string}`)[] | undefined;
1603
+ styleDirective?: {
1604
+ resources?: string[] | undefined;
1605
+ hashes?: (`sha256-${string}` | `sha384-${string}` | `sha512-${string}`)[] | undefined;
1606
+ } | undefined;
1607
+ scriptDirective?: {
1608
+ resources?: string[] | undefined;
1609
+ hashes?: (`sha256-${string}` | `sha384-${string}` | `sha512-${string}`)[] | undefined;
1610
+ strictDynamic?: boolean | undefined;
1611
+ } | undefined;
1612
+ } | undefined;
1509
1613
  } | undefined;
1510
1614
  legacy?: {
1511
1615
  collections?: boolean | undefined;