astro 4.2.7 → 4.3.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.
Files changed (44) hide show
  1. package/dist/@types/astro.d.ts +88 -7
  2. package/dist/content/types-generator.js +2 -1
  3. package/dist/content/utils.d.ts +1 -1
  4. package/dist/content/utils.js +23 -11
  5. package/dist/core/app/index.js +55 -2
  6. package/dist/core/app/node.js +2 -2
  7. package/dist/core/app/types.d.ts +2 -1
  8. package/dist/core/build/common.d.ts +3 -3
  9. package/dist/core/build/common.js +20 -2
  10. package/dist/core/build/generate.js +15 -5
  11. package/dist/core/build/plugins/plugin-manifest.js +12 -3
  12. package/dist/core/build/plugins/plugin-ssr.js +8 -1
  13. package/dist/core/build/util.js +1 -0
  14. package/dist/core/config/schema.d.ts +305 -36
  15. package/dist/core/config/schema.js +95 -18
  16. package/dist/core/constants.js +1 -1
  17. package/dist/core/dev/dev.js +1 -1
  18. package/dist/core/dev/restart.js +11 -3
  19. package/dist/core/errors/errors-data.d.ts +10 -0
  20. package/dist/core/errors/errors-data.js +6 -0
  21. package/dist/core/logger/vite.js +7 -1
  22. package/dist/core/messages.d.ts +5 -0
  23. package/dist/core/messages.js +6 -2
  24. package/dist/core/render/context.js +1 -1
  25. package/dist/core/routing/manifest/serialization.js +2 -1
  26. package/dist/i18n/index.d.ts +9 -7
  27. package/dist/i18n/index.js +61 -12
  28. package/dist/i18n/middleware.js +82 -24
  29. package/dist/i18n/vite-plugin-i18n.d.ts +1 -0
  30. package/dist/i18n/vite-plugin-i18n.js +9 -2
  31. package/dist/integrations/astroFeaturesValidation.d.ts +2 -2
  32. package/dist/integrations/astroFeaturesValidation.js +20 -2
  33. package/dist/integrations/index.d.ts +0 -1
  34. package/dist/integrations/index.js +2 -8
  35. package/dist/runtime/server/endpoint.js +3 -1
  36. package/dist/virtual-modules/i18n.js +12 -3
  37. package/dist/vite-plugin-astro-server/plugin.js +2 -1
  38. package/dist/vite-plugin-astro-server/response.js +1 -5
  39. package/dist/vite-plugin-astro-server/route.js +3 -2
  40. package/dist/vite-plugin-markdown/content-entry-type.js +4 -3
  41. package/dist/vite-plugin-markdown/images.js +5 -2
  42. package/dist/vite-plugin-markdown/index.js +3 -26
  43. package/package.json +1 -1
  44. package/types.d.ts +4 -1
@@ -7,7 +7,7 @@ import { z } from 'zod';
7
7
  import 'mdast-util-to-hast';
8
8
  import 'shikiji-core';
9
9
  type ShikiTheme = NonNullable<ShikiConfig['theme']>;
10
- export type RoutingStrategies = 'pathname-prefix-always' | 'pathname-prefix-other-locales' | 'pathname-prefix-always-no-redirect';
10
+ export type RoutingStrategies = 'pathname-prefix-always' | 'pathname-prefix-other-locales' | 'pathname-prefix-always-no-redirect' | 'domains-prefix-always' | 'domains-prefix-other-locales' | 'domains-prefix-other-no-redirect';
11
11
  export declare const AstroConfigSchema: z.ZodObject<{
12
12
  root: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodString>>, URL, string | undefined>;
13
13
  srcDir: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodString>>, URL, string | undefined>;
@@ -51,7 +51,7 @@ export declare const AstroConfigSchema: z.ZodObject<{
51
51
  };
52
52
  }[], unknown>;
53
53
  build: z.ZodDefault<z.ZodObject<{
54
- format: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"file">, z.ZodLiteral<"directory">]>>>;
54
+ format: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"file">, z.ZodLiteral<"directory">, z.ZodLiteral<"preserve">]>>>;
55
55
  client: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodString>>, URL, string | undefined>;
56
56
  server: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodString>>, URL, string | undefined>;
57
57
  assets: z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -60,7 +60,7 @@ export declare const AstroConfigSchema: z.ZodObject<{
60
60
  redirects: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
61
61
  inlineStylesheets: z.ZodDefault<z.ZodOptional<z.ZodEnum<["always", "auto", "never"]>>>;
62
62
  }, "strip", z.ZodTypeAny, {
63
- format: "file" | "directory";
63
+ format: "file" | "directory" | "preserve";
64
64
  client: URL;
65
65
  server: URL;
66
66
  assets: string;
@@ -69,7 +69,7 @@ export declare const AstroConfigSchema: z.ZodObject<{
69
69
  inlineStylesheets: "always" | "never" | "auto";
70
70
  assetsPrefix?: string | undefined;
71
71
  }, {
72
- format?: "file" | "directory" | undefined;
72
+ format?: "file" | "directory" | "preserve" | undefined;
73
73
  client?: string | undefined;
74
74
  server?: string | undefined;
75
75
  assets?: string | undefined;
@@ -238,7 +238,7 @@ export declare const AstroConfigSchema: z.ZodObject<{
238
238
  smartypants?: boolean | undefined;
239
239
  }>>;
240
240
  vite: z.ZodDefault<z.ZodType<ViteUserConfig, z.ZodTypeDef, ViteUserConfig>>;
241
- i18n: z.ZodOptional<z.ZodEffects<z.ZodOptional<z.ZodObject<{
241
+ i18n: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodObject<{
242
242
  defaultLocale: z.ZodString;
243
243
  locales: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
244
244
  path: z.ZodString;
@@ -250,8 +250,9 @@ export declare const AstroConfigSchema: z.ZodObject<{
250
250
  path: string;
251
251
  codes: [string, ...string[]];
252
252
  }>]>, "many">;
253
+ domains: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
253
254
  fallback: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
254
- routing: z.ZodEffects<z.ZodEffects<z.ZodDefault<z.ZodObject<{
255
+ routing: z.ZodEffects<z.ZodDefault<z.ZodObject<{
255
256
  prefixDefaultLocale: z.ZodDefault<z.ZodBoolean>;
256
257
  redirectToDefaultLocale: z.ZodDefault<z.ZodBoolean>;
257
258
  strategy: z.ZodDefault<z.ZodEnum<["pathname"]>>;
@@ -271,10 +272,6 @@ export declare const AstroConfigSchema: z.ZodObject<{
271
272
  prefixDefaultLocale?: boolean | undefined;
272
273
  redirectToDefaultLocale?: boolean | undefined;
273
274
  strategy?: "pathname" | undefined;
274
- } | undefined>, "pathname-prefix-always" | "pathname-prefix-other-locales" | "pathname-prefix-always-no-redirect", {
275
- prefixDefaultLocale?: boolean | undefined;
276
- redirectToDefaultLocale?: boolean | undefined;
277
- strategy?: "pathname" | undefined;
278
275
  } | undefined>;
279
276
  }, "strip", z.ZodTypeAny, {
280
277
  defaultLocale: string;
@@ -282,7 +279,12 @@ export declare const AstroConfigSchema: z.ZodObject<{
282
279
  path: string;
283
280
  codes: [string, ...string[]];
284
281
  })[];
285
- routing: "pathname-prefix-always" | "pathname-prefix-other-locales" | "pathname-prefix-always-no-redirect";
282
+ routing: {
283
+ prefixDefaultLocale: boolean;
284
+ redirectToDefaultLocale: boolean;
285
+ strategy: "pathname";
286
+ };
287
+ domains?: Record<string, string> | undefined;
286
288
  fallback?: Record<string, string> | undefined;
287
289
  }, {
288
290
  defaultLocale: string;
@@ -290,6 +292,7 @@ export declare const AstroConfigSchema: z.ZodObject<{
290
292
  path: string;
291
293
  codes: [string, ...string[]];
292
294
  })[];
295
+ domains?: Record<string, string> | undefined;
293
296
  fallback?: Record<string, string> | undefined;
294
297
  routing?: {
295
298
  prefixDefaultLocale?: boolean | undefined;
@@ -297,12 +300,35 @@ export declare const AstroConfigSchema: z.ZodObject<{
297
300
  strategy?: "pathname" | undefined;
298
301
  } | undefined;
299
302
  }>>, {
303
+ routing: RoutingStrategies;
304
+ defaultLocale: string;
305
+ locales: (string | {
306
+ path: string;
307
+ codes: [string, ...string[]];
308
+ })[];
309
+ domains?: Record<string, string> | undefined;
310
+ fallback?: Record<string, string> | undefined;
311
+ } | undefined, {
312
+ defaultLocale: string;
313
+ locales: (string | {
314
+ path: string;
315
+ codes: [string, ...string[]];
316
+ })[];
317
+ domains?: Record<string, string> | undefined;
318
+ fallback?: Record<string, string> | undefined;
319
+ routing?: {
320
+ prefixDefaultLocale?: boolean | undefined;
321
+ redirectToDefaultLocale?: boolean | undefined;
322
+ strategy?: "pathname" | undefined;
323
+ } | undefined;
324
+ } | undefined>, {
325
+ routing: RoutingStrategies;
300
326
  defaultLocale: string;
301
327
  locales: (string | {
302
328
  path: string;
303
329
  codes: [string, ...string[]];
304
330
  })[];
305
- routing: "pathname-prefix-always" | "pathname-prefix-other-locales" | "pathname-prefix-always-no-redirect";
331
+ domains?: Record<string, string> | undefined;
306
332
  fallback?: Record<string, string> | undefined;
307
333
  } | undefined, {
308
334
  defaultLocale: string;
@@ -310,6 +336,7 @@ export declare const AstroConfigSchema: z.ZodObject<{
310
336
  path: string;
311
337
  codes: [string, ...string[]];
312
338
  })[];
339
+ domains?: Record<string, string> | undefined;
313
340
  fallback?: Record<string, string> | undefined;
314
341
  routing?: {
315
342
  prefixDefaultLocale?: boolean | undefined;
@@ -322,16 +349,19 @@ export declare const AstroConfigSchema: z.ZodObject<{
322
349
  contentCollectionCache: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
323
350
  clientPrerender: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
324
351
  globalRoutePriority: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
352
+ i18nDomains: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
325
353
  }, "strict", z.ZodTypeAny, {
326
354
  optimizeHoistedScript: boolean;
327
355
  contentCollectionCache: boolean;
328
356
  clientPrerender: boolean;
329
357
  globalRoutePriority: boolean;
358
+ i18nDomains: boolean;
330
359
  }, {
331
360
  optimizeHoistedScript?: boolean | undefined;
332
361
  contentCollectionCache?: boolean | undefined;
333
362
  clientPrerender?: boolean | undefined;
334
363
  globalRoutePriority?: boolean | undefined;
364
+ i18nDomains?: boolean | undefined;
335
365
  }>>;
336
366
  legacy: z.ZodDefault<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
337
367
  }, "strip", z.ZodTypeAny, {
@@ -376,7 +406,7 @@ export declare const AstroConfigSchema: z.ZodObject<{
376
406
  };
377
407
  }[];
378
408
  build: {
379
- format: "file" | "directory";
409
+ format: "file" | "directory" | "preserve";
380
410
  client: URL;
381
411
  server: URL;
382
412
  assets: string;
@@ -409,6 +439,7 @@ export declare const AstroConfigSchema: z.ZodObject<{
409
439
  contentCollectionCache: boolean;
410
440
  clientPrerender: boolean;
411
441
  globalRoutePriority: boolean;
442
+ i18nDomains: boolean;
412
443
  };
413
444
  legacy: {};
414
445
  site?: string | undefined;
@@ -424,12 +455,13 @@ export declare const AstroConfigSchema: z.ZodObject<{
424
455
  defaultStrategy?: "tap" | "hover" | "viewport" | "load" | undefined;
425
456
  } | undefined;
426
457
  i18n?: {
458
+ routing: RoutingStrategies;
427
459
  defaultLocale: string;
428
460
  locales: (string | {
429
461
  path: string;
430
462
  codes: [string, ...string[]];
431
463
  })[];
432
- routing: "pathname-prefix-always" | "pathname-prefix-other-locales" | "pathname-prefix-always-no-redirect";
464
+ domains?: Record<string, string> | undefined;
433
465
  fallback?: Record<string, string> | undefined;
434
466
  } | undefined;
435
467
  }, {
@@ -451,7 +483,7 @@ export declare const AstroConfigSchema: z.ZodObject<{
451
483
  db?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
452
484
  integrations?: unknown;
453
485
  build?: {
454
- format?: "file" | "directory" | undefined;
486
+ format?: "file" | "directory" | "preserve" | undefined;
455
487
  client?: string | undefined;
456
488
  server?: string | undefined;
457
489
  assets?: string | undefined;
@@ -508,6 +540,7 @@ export declare const AstroConfigSchema: z.ZodObject<{
508
540
  path: string;
509
541
  codes: [string, ...string[]];
510
542
  })[];
543
+ domains?: Record<string, string> | undefined;
511
544
  fallback?: Record<string, string> | undefined;
512
545
  routing?: {
513
546
  prefixDefaultLocale?: boolean | undefined;
@@ -520,11 +553,12 @@ export declare const AstroConfigSchema: z.ZodObject<{
520
553
  contentCollectionCache?: boolean | undefined;
521
554
  clientPrerender?: boolean | undefined;
522
555
  globalRoutePriority?: boolean | undefined;
556
+ i18nDomains?: boolean | undefined;
523
557
  } | undefined;
524
558
  legacy?: {} | undefined;
525
559
  }>;
526
560
  export type AstroConfigType = z.infer<typeof AstroConfigSchema>;
527
- export declare function createRelativeSchema(cmd: string, fileProtocolRoot: string): z.ZodEffects<z.ZodEffects<z.ZodObject<{
561
+ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: string): z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
528
562
  image: z.ZodDefault<z.ZodObject<{
529
563
  endpoint: z.ZodOptional<z.ZodString>;
530
564
  service: z.ZodDefault<z.ZodObject<{
@@ -699,7 +733,7 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
699
733
  smartypants?: boolean | undefined;
700
734
  }>>;
701
735
  vite: z.ZodDefault<z.ZodType<ViteUserConfig, z.ZodTypeDef, ViteUserConfig>>;
702
- i18n: z.ZodOptional<z.ZodEffects<z.ZodOptional<z.ZodObject<{
736
+ i18n: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodObject<{
703
737
  defaultLocale: z.ZodString;
704
738
  locales: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
705
739
  path: z.ZodString;
@@ -711,8 +745,9 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
711
745
  path: string;
712
746
  codes: [string, ...string[]];
713
747
  }>]>, "many">;
748
+ domains: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
714
749
  fallback: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
715
- routing: z.ZodEffects<z.ZodEffects<z.ZodDefault<z.ZodObject<{
750
+ routing: z.ZodEffects<z.ZodDefault<z.ZodObject<{
716
751
  prefixDefaultLocale: z.ZodDefault<z.ZodBoolean>;
717
752
  redirectToDefaultLocale: z.ZodDefault<z.ZodBoolean>;
718
753
  strategy: z.ZodDefault<z.ZodEnum<["pathname"]>>;
@@ -732,10 +767,6 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
732
767
  prefixDefaultLocale?: boolean | undefined;
733
768
  redirectToDefaultLocale?: boolean | undefined;
734
769
  strategy?: "pathname" | undefined;
735
- } | undefined>, "pathname-prefix-always" | "pathname-prefix-other-locales" | "pathname-prefix-always-no-redirect", {
736
- prefixDefaultLocale?: boolean | undefined;
737
- redirectToDefaultLocale?: boolean | undefined;
738
- strategy?: "pathname" | undefined;
739
770
  } | undefined>;
740
771
  }, "strip", z.ZodTypeAny, {
741
772
  defaultLocale: string;
@@ -743,7 +774,12 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
743
774
  path: string;
744
775
  codes: [string, ...string[]];
745
776
  })[];
746
- routing: "pathname-prefix-always" | "pathname-prefix-other-locales" | "pathname-prefix-always-no-redirect";
777
+ routing: {
778
+ prefixDefaultLocale: boolean;
779
+ redirectToDefaultLocale: boolean;
780
+ strategy: "pathname";
781
+ };
782
+ domains?: Record<string, string> | undefined;
747
783
  fallback?: Record<string, string> | undefined;
748
784
  }, {
749
785
  defaultLocale: string;
@@ -751,6 +787,7 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
751
787
  path: string;
752
788
  codes: [string, ...string[]];
753
789
  })[];
790
+ domains?: Record<string, string> | undefined;
754
791
  fallback?: Record<string, string> | undefined;
755
792
  routing?: {
756
793
  prefixDefaultLocale?: boolean | undefined;
@@ -758,12 +795,13 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
758
795
  strategy?: "pathname" | undefined;
759
796
  } | undefined;
760
797
  }>>, {
798
+ routing: RoutingStrategies;
761
799
  defaultLocale: string;
762
800
  locales: (string | {
763
801
  path: string;
764
802
  codes: [string, ...string[]];
765
803
  })[];
766
- routing: "pathname-prefix-always" | "pathname-prefix-other-locales" | "pathname-prefix-always-no-redirect";
804
+ domains?: Record<string, string> | undefined;
767
805
  fallback?: Record<string, string> | undefined;
768
806
  } | undefined, {
769
807
  defaultLocale: string;
@@ -771,6 +809,29 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
771
809
  path: string;
772
810
  codes: [string, ...string[]];
773
811
  })[];
812
+ domains?: Record<string, string> | undefined;
813
+ fallback?: Record<string, string> | undefined;
814
+ routing?: {
815
+ prefixDefaultLocale?: boolean | undefined;
816
+ redirectToDefaultLocale?: boolean | undefined;
817
+ strategy?: "pathname" | undefined;
818
+ } | undefined;
819
+ } | undefined>, {
820
+ routing: RoutingStrategies;
821
+ defaultLocale: string;
822
+ locales: (string | {
823
+ path: string;
824
+ codes: [string, ...string[]];
825
+ })[];
826
+ domains?: Record<string, string> | undefined;
827
+ fallback?: Record<string, string> | undefined;
828
+ } | undefined, {
829
+ defaultLocale: string;
830
+ locales: (string | {
831
+ path: string;
832
+ codes: [string, ...string[]];
833
+ })[];
834
+ domains?: Record<string, string> | undefined;
774
835
  fallback?: Record<string, string> | undefined;
775
836
  routing?: {
776
837
  prefixDefaultLocale?: boolean | undefined;
@@ -783,16 +844,19 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
783
844
  contentCollectionCache: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
784
845
  clientPrerender: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
785
846
  globalRoutePriority: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
847
+ i18nDomains: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
786
848
  }, "strict", z.ZodTypeAny, {
787
849
  optimizeHoistedScript: boolean;
788
850
  contentCollectionCache: boolean;
789
851
  clientPrerender: boolean;
790
852
  globalRoutePriority: boolean;
853
+ i18nDomains: boolean;
791
854
  }, {
792
855
  optimizeHoistedScript?: boolean | undefined;
793
856
  contentCollectionCache?: boolean | undefined;
794
857
  clientPrerender?: boolean | undefined;
795
858
  globalRoutePriority?: boolean | undefined;
859
+ i18nDomains?: boolean | undefined;
796
860
  }>>;
797
861
  legacy: z.ZodDefault<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
798
862
  root: z.ZodEffects<z.ZodDefault<z.ZodString>, import("url").URL, string | undefined>;
@@ -802,7 +866,7 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
802
866
  outDir: z.ZodEffects<z.ZodDefault<z.ZodString>, import("url").URL, string | undefined>;
803
867
  cacheDir: z.ZodEffects<z.ZodDefault<z.ZodString>, import("url").URL, string | undefined>;
804
868
  build: z.ZodDefault<z.ZodOptional<z.ZodObject<{
805
- format: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"file">, z.ZodLiteral<"directory">]>>>;
869
+ format: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"file">, z.ZodLiteral<"directory">, z.ZodLiteral<"preserve">]>>>;
806
870
  client: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodString>>, import("url").URL, string | undefined>;
807
871
  server: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodString>>, import("url").URL, string | undefined>;
808
872
  assets: z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -811,7 +875,7 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
811
875
  redirects: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
812
876
  inlineStylesheets: z.ZodDefault<z.ZodOptional<z.ZodEnum<["always", "auto", "never"]>>>;
813
877
  }, "strip", z.ZodTypeAny, {
814
- format: "file" | "directory";
878
+ format: "file" | "directory" | "preserve";
815
879
  client: import("url").URL;
816
880
  server: import("url").URL;
817
881
  assets: string;
@@ -820,7 +884,7 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
820
884
  inlineStylesheets: "always" | "never" | "auto";
821
885
  assetsPrefix?: string | undefined;
822
886
  }, {
823
- format?: "file" | "directory" | undefined;
887
+ format?: "file" | "directory" | "preserve" | undefined;
824
888
  client?: string | undefined;
825
889
  server?: string | undefined;
826
890
  assets?: string | undefined;
@@ -897,7 +961,200 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
897
961
  };
898
962
  }[];
899
963
  build: {
900
- format: "file" | "directory";
964
+ format: "file" | "directory" | "preserve";
965
+ client: import("url").URL;
966
+ server: import("url").URL;
967
+ assets: string;
968
+ serverEntry: string;
969
+ redirects: boolean;
970
+ inlineStylesheets: "always" | "never" | "auto";
971
+ assetsPrefix?: string | undefined;
972
+ };
973
+ devToolbar: {
974
+ enabled: boolean;
975
+ };
976
+ markdown: {
977
+ syntaxHighlight: false | "shiki" | "prism";
978
+ shikiConfig: {
979
+ langs: import("shikiji-core/dist/chunk-types.mjs").s[];
980
+ theme: ("aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z) & ("aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z | undefined);
981
+ experimentalThemes: Record<string, "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z>;
982
+ wrap: boolean | null;
983
+ transformers: import("shikiji-core/dist/chunk-types.mjs").K[];
984
+ };
985
+ remarkPlugins: (string | [string, any] | RemarkPlugin | [RemarkPlugin, any])[];
986
+ rehypePlugins: (string | [string, any] | RehypePlugin | [RehypePlugin, any])[];
987
+ remarkRehype: import("mdast-util-to-hast").Options;
988
+ gfm: boolean;
989
+ smartypants: boolean;
990
+ };
991
+ vite: ViteUserConfig;
992
+ experimental: {
993
+ optimizeHoistedScript: boolean;
994
+ contentCollectionCache: boolean;
995
+ clientPrerender: boolean;
996
+ globalRoutePriority: boolean;
997
+ i18nDomains: boolean;
998
+ };
999
+ legacy: {};
1000
+ site?: string | undefined;
1001
+ adapter?: {
1002
+ name: string;
1003
+ hooks: {} & {
1004
+ [k: string]: unknown;
1005
+ };
1006
+ } | undefined;
1007
+ db?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1008
+ prefetch?: boolean | {
1009
+ prefetchAll?: boolean | undefined;
1010
+ defaultStrategy?: "tap" | "hover" | "viewport" | "load" | undefined;
1011
+ } | undefined;
1012
+ i18n?: {
1013
+ routing: RoutingStrategies;
1014
+ defaultLocale: string;
1015
+ locales: (string | {
1016
+ path: string;
1017
+ codes: [string, ...string[]];
1018
+ })[];
1019
+ domains?: Record<string, string> | undefined;
1020
+ fallback?: Record<string, string> | undefined;
1021
+ } | undefined;
1022
+ }, {
1023
+ image?: {
1024
+ endpoint?: string | undefined;
1025
+ service?: {
1026
+ entrypoint?: string | undefined;
1027
+ config?: Record<string, any> | undefined;
1028
+ } | undefined;
1029
+ domains?: string[] | undefined;
1030
+ remotePatterns?: {
1031
+ protocol?: string | undefined;
1032
+ hostname?: string | undefined;
1033
+ port?: string | undefined;
1034
+ pathname?: string | undefined;
1035
+ }[] | undefined;
1036
+ } | undefined;
1037
+ redirects?: Record<string, string | {
1038
+ status: 300 | 301 | 302 | 303 | 304 | 307 | 308;
1039
+ destination: string;
1040
+ }> | undefined;
1041
+ site?: string | undefined;
1042
+ base?: string | undefined;
1043
+ trailingSlash?: "ignore" | "always" | "never" | undefined;
1044
+ output?: "server" | "static" | "hybrid" | undefined;
1045
+ scopedStyleStrategy?: "where" | "class" | "attribute" | undefined;
1046
+ adapter?: {
1047
+ name: string;
1048
+ hooks?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1049
+ } | undefined;
1050
+ db?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1051
+ integrations?: unknown;
1052
+ prefetch?: boolean | {
1053
+ prefetchAll?: boolean | undefined;
1054
+ defaultStrategy?: "tap" | "hover" | "viewport" | "load" | undefined;
1055
+ } | undefined;
1056
+ devToolbar?: {
1057
+ enabled?: boolean | undefined;
1058
+ } | undefined;
1059
+ markdown?: {
1060
+ syntaxHighlight?: false | "shiki" | "prism" | undefined;
1061
+ shikiConfig?: {
1062
+ langs?: import("shikiji-core/dist/chunk-types.mjs").s[] | undefined;
1063
+ theme?: "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z | undefined;
1064
+ experimentalThemes?: Record<string, "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z> | undefined;
1065
+ wrap?: boolean | null | undefined;
1066
+ transformers?: import("shikiji-core/dist/chunk-types.mjs").K[] | undefined;
1067
+ } | undefined;
1068
+ remarkPlugins?: (string | [string, any] | RemarkPlugin | [RemarkPlugin, any])[] | undefined;
1069
+ rehypePlugins?: (string | [string, any] | RehypePlugin | [RehypePlugin, any])[] | undefined;
1070
+ remarkRehype?: import("mdast-util-to-hast").Options | undefined;
1071
+ gfm?: boolean | undefined;
1072
+ smartypants?: boolean | undefined;
1073
+ } | undefined;
1074
+ vite?: ViteUserConfig | undefined;
1075
+ i18n?: {
1076
+ defaultLocale: string;
1077
+ locales: (string | {
1078
+ path: string;
1079
+ codes: [string, ...string[]];
1080
+ })[];
1081
+ domains?: Record<string, string> | undefined;
1082
+ fallback?: Record<string, string> | undefined;
1083
+ routing?: {
1084
+ prefixDefaultLocale?: boolean | undefined;
1085
+ redirectToDefaultLocale?: boolean | undefined;
1086
+ strategy?: "pathname" | undefined;
1087
+ } | undefined;
1088
+ } | undefined;
1089
+ experimental?: {
1090
+ optimizeHoistedScript?: boolean | undefined;
1091
+ contentCollectionCache?: boolean | undefined;
1092
+ clientPrerender?: boolean | undefined;
1093
+ globalRoutePriority?: boolean | undefined;
1094
+ i18nDomains?: boolean | undefined;
1095
+ } | undefined;
1096
+ legacy?: {} | undefined;
1097
+ root?: string | undefined;
1098
+ srcDir?: string | undefined;
1099
+ compressHTML?: boolean | undefined;
1100
+ publicDir?: string | undefined;
1101
+ outDir?: string | undefined;
1102
+ cacheDir?: string | undefined;
1103
+ build?: {
1104
+ format?: "file" | "directory" | "preserve" | undefined;
1105
+ client?: string | undefined;
1106
+ server?: string | undefined;
1107
+ assets?: string | undefined;
1108
+ assetsPrefix?: string | undefined;
1109
+ serverEntry?: string | undefined;
1110
+ redirects?: boolean | undefined;
1111
+ inlineStylesheets?: "always" | "never" | "auto" | undefined;
1112
+ } | undefined;
1113
+ server?: unknown;
1114
+ }>, {
1115
+ image: {
1116
+ service: {
1117
+ entrypoint: string;
1118
+ config: Record<string, any>;
1119
+ };
1120
+ domains: string[];
1121
+ remotePatterns: {
1122
+ protocol?: string | undefined;
1123
+ hostname?: string | undefined;
1124
+ port?: string | undefined;
1125
+ pathname?: string | undefined;
1126
+ }[];
1127
+ endpoint?: string | undefined;
1128
+ };
1129
+ server: {
1130
+ host: string | boolean;
1131
+ port: number;
1132
+ open: string | boolean;
1133
+ streaming: boolean;
1134
+ headers?: OutgoingHttpHeaders | undefined;
1135
+ };
1136
+ redirects: Record<string, string | {
1137
+ status: 300 | 301 | 302 | 303 | 304 | 307 | 308;
1138
+ destination: string;
1139
+ }>;
1140
+ root: import("url").URL;
1141
+ srcDir: import("url").URL;
1142
+ publicDir: import("url").URL;
1143
+ outDir: import("url").URL;
1144
+ cacheDir: import("url").URL;
1145
+ compressHTML: boolean;
1146
+ base: string;
1147
+ trailingSlash: "ignore" | "always" | "never";
1148
+ output: "server" | "static" | "hybrid";
1149
+ scopedStyleStrategy: "where" | "class" | "attribute";
1150
+ integrations: {
1151
+ name: string;
1152
+ hooks: {} & {
1153
+ [k: string]: unknown;
1154
+ };
1155
+ }[];
1156
+ build: {
1157
+ format: "file" | "directory" | "preserve";
901
1158
  client: import("url").URL;
902
1159
  server: import("url").URL;
903
1160
  assets: string;
@@ -930,6 +1187,7 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
930
1187
  contentCollectionCache: boolean;
931
1188
  clientPrerender: boolean;
932
1189
  globalRoutePriority: boolean;
1190
+ i18nDomains: boolean;
933
1191
  };
934
1192
  legacy: {};
935
1193
  site?: string | undefined;
@@ -945,12 +1203,13 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
945
1203
  defaultStrategy?: "tap" | "hover" | "viewport" | "load" | undefined;
946
1204
  } | undefined;
947
1205
  i18n?: {
1206
+ routing: RoutingStrategies;
948
1207
  defaultLocale: string;
949
1208
  locales: (string | {
950
1209
  path: string;
951
1210
  codes: [string, ...string[]];
952
1211
  })[];
953
- routing: "pathname-prefix-always" | "pathname-prefix-other-locales" | "pathname-prefix-always-no-redirect";
1212
+ domains?: Record<string, string> | undefined;
954
1213
  fallback?: Record<string, string> | undefined;
955
1214
  } | undefined;
956
1215
  }, {
@@ -1012,6 +1271,7 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
1012
1271
  path: string;
1013
1272
  codes: [string, ...string[]];
1014
1273
  })[];
1274
+ domains?: Record<string, string> | undefined;
1015
1275
  fallback?: Record<string, string> | undefined;
1016
1276
  routing?: {
1017
1277
  prefixDefaultLocale?: boolean | undefined;
@@ -1024,6 +1284,7 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
1024
1284
  contentCollectionCache?: boolean | undefined;
1025
1285
  clientPrerender?: boolean | undefined;
1026
1286
  globalRoutePriority?: boolean | undefined;
1287
+ i18nDomains?: boolean | undefined;
1027
1288
  } | undefined;
1028
1289
  legacy?: {} | undefined;
1029
1290
  root?: string | undefined;
@@ -1033,7 +1294,7 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
1033
1294
  outDir?: string | undefined;
1034
1295
  cacheDir?: string | undefined;
1035
1296
  build?: {
1036
- format?: "file" | "directory" | undefined;
1297
+ format?: "file" | "directory" | "preserve" | undefined;
1037
1298
  client?: string | undefined;
1038
1299
  server?: string | undefined;
1039
1300
  assets?: string | undefined;
@@ -1086,7 +1347,7 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
1086
1347
  };
1087
1348
  }[];
1088
1349
  build: {
1089
- format: "file" | "directory";
1350
+ format: "file" | "directory" | "preserve";
1090
1351
  client: import("url").URL;
1091
1352
  server: import("url").URL;
1092
1353
  assets: string;
@@ -1119,6 +1380,7 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
1119
1380
  contentCollectionCache: boolean;
1120
1381
  clientPrerender: boolean;
1121
1382
  globalRoutePriority: boolean;
1383
+ i18nDomains: boolean;
1122
1384
  };
1123
1385
  legacy: {};
1124
1386
  site?: string | undefined;
@@ -1134,12 +1396,13 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
1134
1396
  defaultStrategy?: "tap" | "hover" | "viewport" | "load" | undefined;
1135
1397
  } | undefined;
1136
1398
  i18n?: {
1399
+ routing: RoutingStrategies;
1137
1400
  defaultLocale: string;
1138
1401
  locales: (string | {
1139
1402
  path: string;
1140
1403
  codes: [string, ...string[]];
1141
1404
  })[];
1142
- routing: "pathname-prefix-always" | "pathname-prefix-other-locales" | "pathname-prefix-always-no-redirect";
1405
+ domains?: Record<string, string> | undefined;
1143
1406
  fallback?: Record<string, string> | undefined;
1144
1407
  } | undefined;
1145
1408
  }, {
@@ -1201,6 +1464,7 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
1201
1464
  path: string;
1202
1465
  codes: [string, ...string[]];
1203
1466
  })[];
1467
+ domains?: Record<string, string> | undefined;
1204
1468
  fallback?: Record<string, string> | undefined;
1205
1469
  routing?: {
1206
1470
  prefixDefaultLocale?: boolean | undefined;
@@ -1213,6 +1477,7 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
1213
1477
  contentCollectionCache?: boolean | undefined;
1214
1478
  clientPrerender?: boolean | undefined;
1215
1479
  globalRoutePriority?: boolean | undefined;
1480
+ i18nDomains?: boolean | undefined;
1216
1481
  } | undefined;
1217
1482
  legacy?: {} | undefined;
1218
1483
  root?: string | undefined;
@@ -1222,7 +1487,7 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
1222
1487
  outDir?: string | undefined;
1223
1488
  cacheDir?: string | undefined;
1224
1489
  build?: {
1225
- format?: "file" | "directory" | undefined;
1490
+ format?: "file" | "directory" | "preserve" | undefined;
1226
1491
  client?: string | undefined;
1227
1492
  server?: string | undefined;
1228
1493
  assets?: string | undefined;
@@ -1275,7 +1540,7 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
1275
1540
  };
1276
1541
  }[];
1277
1542
  build: {
1278
- format: "file" | "directory";
1543
+ format: "file" | "directory" | "preserve";
1279
1544
  client: import("url").URL;
1280
1545
  server: import("url").URL;
1281
1546
  assets: string;
@@ -1308,6 +1573,7 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
1308
1573
  contentCollectionCache: boolean;
1309
1574
  clientPrerender: boolean;
1310
1575
  globalRoutePriority: boolean;
1576
+ i18nDomains: boolean;
1311
1577
  };
1312
1578
  legacy: {};
1313
1579
  site?: string | undefined;
@@ -1323,12 +1589,13 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
1323
1589
  defaultStrategy?: "tap" | "hover" | "viewport" | "load" | undefined;
1324
1590
  } | undefined;
1325
1591
  i18n?: {
1592
+ routing: RoutingStrategies;
1326
1593
  defaultLocale: string;
1327
1594
  locales: (string | {
1328
1595
  path: string;
1329
1596
  codes: [string, ...string[]];
1330
1597
  })[];
1331
- routing: "pathname-prefix-always" | "pathname-prefix-other-locales" | "pathname-prefix-always-no-redirect";
1598
+ domains?: Record<string, string> | undefined;
1332
1599
  fallback?: Record<string, string> | undefined;
1333
1600
  } | undefined;
1334
1601
  }, {
@@ -1390,6 +1657,7 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
1390
1657
  path: string;
1391
1658
  codes: [string, ...string[]];
1392
1659
  })[];
1660
+ domains?: Record<string, string> | undefined;
1393
1661
  fallback?: Record<string, string> | undefined;
1394
1662
  routing?: {
1395
1663
  prefixDefaultLocale?: boolean | undefined;
@@ -1402,6 +1670,7 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
1402
1670
  contentCollectionCache?: boolean | undefined;
1403
1671
  clientPrerender?: boolean | undefined;
1404
1672
  globalRoutePriority?: boolean | undefined;
1673
+ i18nDomains?: boolean | undefined;
1405
1674
  } | undefined;
1406
1675
  legacy?: {} | undefined;
1407
1676
  root?: string | undefined;
@@ -1411,7 +1680,7 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
1411
1680
  outDir?: string | undefined;
1412
1681
  cacheDir?: string | undefined;
1413
1682
  build?: {
1414
- format?: "file" | "directory" | undefined;
1683
+ format?: "file" | "directory" | "preserve" | undefined;
1415
1684
  client?: string | undefined;
1416
1685
  server?: string | undefined;
1417
1686
  assets?: string | undefined;