astro 4.13.0 → 4.13.2

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 (110) hide show
  1. package/astro-jsx.d.ts +0 -1
  2. package/astro.js +2 -1
  3. package/client.d.ts +1 -1
  4. package/components/Picture.astro +2 -2
  5. package/components/ViewTransitions.astro +1 -1
  6. package/config.d.ts +1 -1
  7. package/dist/@types/astro.d.ts +21 -2
  8. package/dist/actions/runtime/middleware.d.ts +3 -3
  9. package/dist/actions/runtime/middleware.js +39 -72
  10. package/dist/actions/runtime/route.js +16 -23
  11. package/dist/actions/runtime/utils.d.ts +2 -8
  12. package/dist/actions/runtime/utils.js +0 -15
  13. package/dist/actions/runtime/virtual/client.d.ts +0 -1
  14. package/dist/actions/runtime/virtual/client.js +0 -4
  15. package/dist/actions/runtime/virtual/get-action.d.ts +8 -0
  16. package/dist/actions/runtime/virtual/get-action.js +17 -0
  17. package/dist/actions/runtime/virtual/server.d.ts +1 -4
  18. package/dist/actions/runtime/virtual/server.js +20 -13
  19. package/dist/actions/runtime/virtual/shared.d.ts +18 -1
  20. package/dist/actions/runtime/virtual/shared.js +56 -8
  21. package/dist/actions/utils.d.ts +2 -0
  22. package/dist/actions/utils.js +13 -8
  23. package/dist/assets/build/generate.js +1 -1
  24. package/dist/assets/endpoint/generic.js +1 -1
  25. package/dist/assets/endpoint/node.js +3 -3
  26. package/dist/assets/services/sharp.js +1 -1
  27. package/dist/assets/services/vendor/squoosh/avif/avif_node_dec.js +1 -1
  28. package/dist/assets/services/vendor/squoosh/avif/avif_node_enc.js +1 -1
  29. package/dist/assets/services/vendor/squoosh/mozjpeg/mozjpeg_node_dec.js +1 -1
  30. package/dist/assets/services/vendor/squoosh/mozjpeg/mozjpeg_node_enc.js +1 -1
  31. package/dist/assets/services/vendor/squoosh/webp/webp_node_dec.js +1 -1
  32. package/dist/assets/services/vendor/squoosh/webp/webp_node_enc.js +1 -1
  33. package/dist/assets/utils/metadata.js +1 -1
  34. package/dist/assets/utils/node/emitAsset.js +1 -1
  35. package/dist/assets/utils/remoteProbe.js +1 -1
  36. package/dist/assets/utils/vendor/image-size/lookup.js +1 -1
  37. package/dist/assets/utils/vendor/image-size/types/svg.js +4 -4
  38. package/dist/cli/add/index.d.ts +0 -7
  39. package/dist/cli/add/index.js +1 -2
  40. package/dist/cli/info/index.js +2 -2
  41. package/dist/cli/install-package.d.ts +0 -1
  42. package/dist/cli/install-package.js +3 -4
  43. package/dist/content/runtime-assets.d.ts +1 -1
  44. package/dist/content/utils.d.ts +2 -11
  45. package/dist/content/utils.js +0 -8
  46. package/dist/core/app/index.js +1 -1
  47. package/dist/core/build/css-asset-name.d.ts +3 -3
  48. package/dist/core/build/css-asset-name.js +15 -8
  49. package/dist/core/build/generate.d.ts +0 -4
  50. package/dist/core/build/generate.js +4 -24
  51. package/dist/core/build/index.js +8 -2
  52. package/dist/core/build/internal.d.ts +0 -18
  53. package/dist/core/build/internal.js +0 -17
  54. package/dist/core/build/page-data.d.ts +1 -1
  55. package/dist/core/build/page-data.js +1 -18
  56. package/dist/core/build/plugins/plugin-analyzer.js +0 -4
  57. package/dist/core/build/plugins/plugin-css.js +2 -2
  58. package/dist/core/build/plugins/plugin-internals.js +0 -7
  59. package/dist/core/build/plugins/plugin-manifest.d.ts +0 -10
  60. package/dist/core/build/plugins/plugin-manifest.js +0 -2
  61. package/dist/core/build/plugins/plugin-ssr.js +0 -1
  62. package/dist/core/build/types.d.ts +1 -8
  63. package/dist/core/compile/index.d.ts +0 -1
  64. package/dist/core/compile/types.d.ts +0 -7
  65. package/dist/core/config/schema.d.ts +55 -55
  66. package/dist/core/config/tsconfig.d.ts +1 -1
  67. package/dist/core/constants.js +1 -1
  68. package/dist/core/dev/dev.js +2 -2
  69. package/dist/core/dev/restart.d.ts +0 -2
  70. package/dist/core/dev/restart.js +1 -3
  71. package/dist/core/errors/dev/vite.d.ts +0 -13
  72. package/dist/core/errors/dev/vite.js +5 -6
  73. package/dist/core/errors/errors-data.d.ts +21 -5
  74. package/dist/core/errors/errors-data.js +13 -6
  75. package/dist/core/fs/index.d.ts +0 -2
  76. package/dist/core/fs/index.js +0 -5
  77. package/dist/core/logger/core.d.ts +0 -1
  78. package/dist/core/logger/core.js +0 -18
  79. package/dist/core/messages.d.ts +0 -1
  80. package/dist/core/messages.js +2 -3
  81. package/dist/core/middleware/index.js +3 -2
  82. package/dist/core/render/ssr-element.d.ts +0 -1
  83. package/dist/core/render/ssr-element.js +0 -6
  84. package/dist/core/render-context.d.ts +1 -1
  85. package/dist/core/render-context.js +9 -4
  86. package/dist/core/routing/manifest/create.js +2 -2
  87. package/dist/core/util.d.ts +0 -2
  88. package/dist/core/util.js +0 -14
  89. package/dist/events/error.js +1 -1
  90. package/dist/preferences/index.d.ts +0 -1
  91. package/dist/preferences/index.js +0 -1
  92. package/dist/runtime/client/dev-toolbar/apps/audit/index.js +1 -1
  93. package/dist/runtime/client/dev-toolbar/apps/audit/rules/perf.js +4 -2
  94. package/dist/runtime/server/render/component.d.ts +0 -3
  95. package/dist/runtime/server/render/component.js +1 -3
  96. package/dist/transitions/router.js +2 -2
  97. package/dist/type-utils.d.ts +1 -1
  98. package/dist/vite-plugin-astro-server/controller.d.ts +0 -4
  99. package/dist/vite-plugin-astro-server/controller.js +0 -2
  100. package/dist/vite-plugin-astro-server/vite.js +1 -2
  101. package/dist/vite-plugin-env/index.js +0 -1
  102. package/dist/vite-plugin-load-fallback/index.js +3 -3
  103. package/dist/vite-plugin-scanner/index.js +1 -1
  104. package/dist/vite-plugin-scripts/page-ssr.js +1 -1
  105. package/package.json +8 -17
  106. package/templates/actions.mjs +25 -18
  107. package/templates/content/types.d.ts +12 -10
  108. package/types/content.d.ts +1 -1
  109. package/dist/actions/runtime/store.d.ts +0 -5
  110. package/dist/actions/runtime/store.js +0 -18
@@ -1,6 +1,5 @@
1
1
  import type { Rollup } from 'vite';
2
2
  import type { RouteData, SSRResult } from '../../@types/astro.js';
3
- import type { PageOptions } from '../../vite-plugin-astro/types.js';
4
3
  import type { PageBuildData, StylesheetAsset, ViteID } from './types.js';
5
4
  export interface BuildInternals {
6
5
  /**
@@ -20,18 +19,10 @@ export interface BuildInternals {
20
19
  */
21
20
  inlinedScripts: Map<string, string>;
22
21
  entrySpecifierToBundleMap: Map<string, string>;
23
- /**
24
- * A map to get a specific page's bundled output file.
25
- */
26
- pageToBundleMap: Map<string, string>;
27
22
  /**
28
23
  * A map for page-specific information.
29
24
  */
30
25
  pagesByKeys: Map<string, PageBuildData>;
31
- /**
32
- * A map for page-specific output.
33
- */
34
- pageOptionsByPage: Map<string, PageOptions>;
35
26
  /**
36
27
  * A map for page-specific information by Vite ID (a path-like string)
37
28
  */
@@ -86,7 +77,6 @@ export interface BuildInternals {
86
77
  manifestEntryChunk?: Rollup.OutputChunk;
87
78
  manifestFileName?: string;
88
79
  entryPoints: Map<RouteData, URL>;
89
- ssrSplitEntryChunks: Map<string, Rollup.OutputChunk>;
90
80
  componentMetadata: SSRResult['componentMetadata'];
91
81
  middlewareEntryPoint?: URL;
92
82
  /**
@@ -108,7 +98,6 @@ export declare function trackClientOnlyPageDatas(internals: BuildInternals, page
108
98
  * Tracks scripts to the pages they are associated with. (experimental.directRenderScript)
109
99
  */
110
100
  export declare function trackScriptPageDatas(internals: BuildInternals, pageData: PageBuildData, scriptIds: string[]): void;
111
- export declare function getPageDatasByChunk(internals: BuildInternals, chunk: Rollup.RenderedChunk): Generator<PageBuildData, void, unknown>;
112
101
  export declare function getPageDatasByClientOnlyID(internals: BuildInternals, viteid: ViteID): Generator<PageBuildData, void, unknown>;
113
102
  /**
114
103
  * From its route and component, get the page data from the build internals.
@@ -117,12 +106,6 @@ export declare function getPageDatasByClientOnlyID(internals: BuildInternals, vi
117
106
  * @param component The component of the page, used to identify the page
118
107
  */
119
108
  export declare function getPageData(internals: BuildInternals, route: string, component: string): PageBuildData | undefined;
120
- /**
121
- * Get all pages datas from the build internals, using a specific component.
122
- * @param internals Build Internals with all the pages
123
- * @param component path to the component, used to identify related pages
124
- */
125
- export declare function getPagesDatasByComponent(internals: BuildInternals, component: string): PageBuildData[];
126
109
  /**
127
110
  * Map internals.pagesByKeys to a new map with the public key instead of the internal key.
128
111
  * This function is only used to avoid breaking changes in the Integrations API, after we changed the way
@@ -134,7 +117,6 @@ export declare function getPagesDatasByComponent(internals: BuildInternals, comp
134
117
  */
135
118
  export declare function getPageDatasWithPublicKey(pagesByKeys: Map<string, PageBuildData>): Map<string, PageBuildData>;
136
119
  export declare function getPageDataByViteID(internals: BuildInternals, viteid: ViteID): PageBuildData | undefined;
137
- export declare function hasPageDataByViteID(internals: BuildInternals, viteid: ViteID): boolean;
138
120
  export declare function hasPrerenderedPages(internals: BuildInternals): boolean;
139
121
  interface OrderInfo {
140
122
  depth: number;
@@ -11,9 +11,7 @@ function createBuildInternals() {
11
11
  hoistedScriptIdToPagesMap,
12
12
  inlinedScripts: /* @__PURE__ */ new Map(),
13
13
  entrySpecifierToBundleMap: /* @__PURE__ */ new Map(),
14
- pageToBundleMap: /* @__PURE__ */ new Map(),
15
14
  pagesByKeys: /* @__PURE__ */ new Map(),
16
- pageOptionsByPage: /* @__PURE__ */ new Map(),
17
15
  pagesByViteID: /* @__PURE__ */ new Map(),
18
16
  pagesByClientOnly: /* @__PURE__ */ new Map(),
19
17
  pagesByScriptId: /* @__PURE__ */ new Map(),
@@ -24,7 +22,6 @@ function createBuildInternals() {
24
22
  discoveredScripts: /* @__PURE__ */ new Set(),
25
23
  staticFiles: /* @__PURE__ */ new Set(),
26
24
  componentMetadata: /* @__PURE__ */ new Map(),
27
- ssrSplitEntryChunks: /* @__PURE__ */ new Map(),
28
25
  entryPoints: /* @__PURE__ */ new Map(),
29
26
  cacheManifestUsed: false,
30
27
  prerenderOnlyChunks: []
@@ -59,14 +56,6 @@ function trackScriptPageDatas(internals, pageData, scriptIds) {
59
56
  pageDataSet.add(pageData);
60
57
  }
61
58
  }
62
- function* getPageDatasByChunk(internals, chunk) {
63
- const pagesByViteID = internals.pagesByViteID;
64
- for (const [modulePath] of Object.entries(chunk.modules)) {
65
- if (pagesByViteID.has(modulePath)) {
66
- yield pagesByViteID.get(modulePath);
67
- }
68
- }
69
- }
70
59
  function* getPageDatasByClientOnlyID(internals, viteid) {
71
60
  const pagesByClientOnly = internals.pagesByClientOnly;
72
61
  if (pagesByClientOnly.size) {
@@ -125,9 +114,6 @@ function getPageDataByViteID(internals, viteid) {
125
114
  }
126
115
  return void 0;
127
116
  }
128
- function hasPageDataByViteID(internals, viteid) {
129
- return internals.pagesByViteID.has(viteid);
130
- }
131
117
  function hasPrerenderedPages(internals) {
132
118
  for (const pageData of internals.pagesByKeys.values()) {
133
119
  if (pageData.route.prerender) {
@@ -185,12 +171,9 @@ export {
185
171
  cssOrder,
186
172
  getPageData,
187
173
  getPageDataByViteID,
188
- getPageDatasByChunk,
189
174
  getPageDatasByClientOnlyID,
190
175
  getPageDatasByHoistedScriptId,
191
176
  getPageDatasWithPublicKey,
192
- getPagesDatasByComponent,
193
- hasPageDataByViteID,
194
177
  hasPrerenderedPages,
195
178
  mergeInlineCss,
196
179
  trackClientOnlyPageDatas,
@@ -10,4 +10,4 @@ export interface CollectPagesDataResult {
10
10
  assets: Record<string, string>;
11
11
  allPages: AllPagesData;
12
12
  }
13
- export declare function collectPagesData(opts: CollectPagesDataOptions): Promise<CollectPagesDataResult>;
13
+ export declare function collectPagesData(opts: CollectPagesDataOptions): CollectPagesDataResult;
@@ -1,28 +1,13 @@
1
1
  import * as colors from "kleur/colors";
2
2
  import { debug } from "../logger/core.js";
3
3
  import { makePageDataKey } from "./plugins/util.js";
4
- async function collectPagesData(opts) {
4
+ function collectPagesData(opts) {
5
5
  const { settings, manifest } = opts;
6
6
  const assets = {};
7
7
  const allPages = {};
8
- const builtPaths = /* @__PURE__ */ new Set();
9
- const dataCollectionLogTimeout = setInterval(() => {
10
- opts.logger.info("build", "The data collection step may take longer for larger projects...");
11
- clearInterval(dataCollectionLogTimeout);
12
- }, 3e4);
13
8
  for (const route of manifest.routes) {
14
9
  const key = makePageDataKey(route.route, route.component);
15
10
  if (route.pathname) {
16
- const routeCollectionLogTimeout = setInterval(() => {
17
- opts.logger.info(
18
- "build",
19
- `${colors.bold(
20
- route.component
21
- )} is taking a bit longer to import. This is common for larger "Astro.glob(...)" or "import.meta.glob(...)" calls, for instance. Hang tight!`
22
- );
23
- clearInterval(routeCollectionLogTimeout);
24
- }, 1e4);
25
- builtPaths.add(route.pathname);
26
11
  allPages[key] = {
27
12
  key,
28
13
  component: route.component,
@@ -31,7 +16,6 @@ async function collectPagesData(opts) {
31
16
  styles: [],
32
17
  hoistedScript: void 0
33
18
  };
34
- clearInterval(routeCollectionLogTimeout);
35
19
  if (settings.config.output === "static") {
36
20
  const html = `${route.pathname}`.replace(/\/?$/, "/index.html");
37
21
  debug(
@@ -52,7 +36,6 @@ async function collectPagesData(opts) {
52
36
  hoistedScript: void 0
53
37
  };
54
38
  }
55
- clearInterval(dataCollectionLogTimeout);
56
39
  return { assets, allPages };
57
40
  }
58
41
  export {
@@ -94,10 +94,6 @@ function vitePluginAnalyzer(options, internals) {
94
94
  const info = this.getModuleInfo(id);
95
95
  if (!info?.meta?.astro) continue;
96
96
  const astro = info.meta.astro;
97
- const pageData = getPageDataByViteID(internals, id);
98
- if (pageData) {
99
- internals.pageOptionsByPage.set(id, astro.pageOptions);
100
- }
101
97
  for (const c of astro.hydratedComponents) {
102
98
  const rid = c.resolvedPath ? decodeURI(c.resolvedPath) : c.specifier;
103
99
  if (internals.discoveredHydratedComponents.has(rid)) {
@@ -40,7 +40,7 @@ function rollupPluginAstroBuildCSS(options) {
40
40
  outputOptions(outputOptions) {
41
41
  const assetFileNames = outputOptions.assetFileNames;
42
42
  const namingIncludesHash = assetFileNames?.toString().includes("[hash]");
43
- const createNameForParentPages = namingIncludesHash ? assetName.shortHashedName : assetName.createSlugger(settings);
43
+ const createNameForParentPages = namingIncludesHash ? assetName.shortHashedName(settings) : assetName.createSlugger(settings);
44
44
  extendManualChunks(outputOptions, {
45
45
  after(id, meta) {
46
46
  if (isBuildableCSSRequest(id)) {
@@ -50,7 +50,7 @@ function rollupPluginAstroBuildCSS(options) {
50
50
  const ctx = { getModuleInfo: meta.getModuleInfo };
51
51
  for (const pageInfo of getParentModuleInfos(id, ctx)) {
52
52
  if (hasAssetPropagationFlag(pageInfo.id)) {
53
- const chunkId2 = assetName.createNameHash(id, [id]);
53
+ const chunkId2 = assetName.createNameHash(id, [id], settings);
54
54
  internals.cssModuleToChunkIdMap.set(id, chunkId2);
55
55
  return chunkId2;
56
56
  }
@@ -41,13 +41,6 @@ function vitePluginInternals(input, internals) {
41
41
  for (const specifier of specifiers) {
42
42
  internals.entrySpecifierToBundleMap.set(normalizeEntryId(specifier), chunk.fileName);
43
43
  }
44
- } else if (chunk.type === "chunk") {
45
- for (const id of Object.keys(chunk.modules)) {
46
- const pageData = internals.pagesByViteID.get(id);
47
- if (pageData) {
48
- internals.pageToBundleMap.set(pageData.moduleSpecifier, chunk.fileName);
49
- }
50
- }
51
44
  }
52
45
  }
53
46
  }
@@ -1,16 +1,6 @@
1
- import type { OutputChunk } from 'rollup';
2
- import type { SerializedSSRManifest } from '../../app/types.js';
3
1
  import { type BuildInternals } from '../internal.js';
4
2
  import type { AstroBuildPlugin } from '../plugin.js';
5
3
  import type { StaticBuildOptions } from '../types.js';
6
4
  export declare const SSR_MANIFEST_VIRTUAL_MODULE_ID = "@astrojs-manifest";
7
5
  export declare const RESOLVED_SSR_MANIFEST_VIRTUAL_MODULE_ID: string;
8
6
  export declare function pluginManifest(options: StaticBuildOptions, internals: BuildInternals): AstroBuildPlugin;
9
- export declare function createManifest(buildOpts: StaticBuildOptions, internals: BuildInternals): Promise<SerializedSSRManifest>;
10
- /**
11
- * It injects the manifest in the given output rollup chunk. It returns the new emitted code
12
- * @param buildOpts
13
- * @param internals
14
- * @param chunk
15
- */
16
- export declare function injectManifest(manifest: SerializedSSRManifest, chunk: Readonly<OutputChunk>): string;
@@ -220,7 +220,5 @@ function buildManifest(opts, internals, staticFiles) {
220
220
  export {
221
221
  RESOLVED_SSR_MANIFEST_VIRTUAL_MODULE_ID,
222
222
  SSR_MANIFEST_VIRTUAL_MODULE_ID,
223
- createManifest,
224
- injectManifest,
225
223
  pluginManifest
226
224
  };
@@ -167,7 +167,6 @@ function vitePluginSSRSplit(internals, adapter, options) {
167
167
  }
168
168
  for (const moduleKey of Object.keys(chunk.modules)) {
169
169
  if (moduleKey.startsWith(RESOLVED_SPLIT_MODULE_ID)) {
170
- internals.ssrSplitEntryChunks.set(moduleKey, chunk);
171
170
  storeEntryPoint(moduleKey, options, internals, chunk.fileName);
172
171
  }
173
172
  }
@@ -1,10 +1,9 @@
1
1
  import type * as vite from 'vite';
2
2
  import type { InlineConfig } from 'vite';
3
- import type { AstroConfig, AstroSettings, ComponentInstance, ManifestData, MiddlewareHandler, RouteData, RuntimeMode, SSRLoadedRenderer } from '../../@types/astro.js';
3
+ import type { AstroSettings, ComponentInstance, ManifestData, MiddlewareHandler, RouteData, RuntimeMode, SSRLoadedRenderer } from '../../@types/astro.js';
4
4
  import type { Logger } from '../logger/core.js';
5
5
  export type ComponentPath = string;
6
6
  export type ViteID = string;
7
- export type PageOutput = AstroConfig['output'];
8
7
  export type StylesheetAsset = {
9
8
  type: 'inline';
10
9
  content: string;
@@ -51,10 +50,4 @@ export interface SinglePageBuiltModule {
51
50
  renderers: SSRLoadedRenderer[];
52
51
  }
53
52
  export type ViteBuildReturn = Awaited<ReturnType<typeof vite.build>>;
54
- export type RollupOutput = Extract<Extract<ViteBuildReturn, Exclude<ViteBuildReturn, Array<any>>>, {
55
- output: any;
56
- }>;
57
- export type OutputChunk = Extract<RollupOutput['output'][number], {
58
- type: 'chunk';
59
- }>;
60
53
  export {};
@@ -1,3 +1,2 @@
1
1
  export { compile } from './compile.js';
2
2
  export type { CompileProps, CompileResult } from './compile.js';
3
- export type { TransformStyle } from './types.js';
@@ -1,10 +1,3 @@
1
- import type { SourceMap } from 'rollup';
2
- export type TransformStyleResult = null | {
3
- code: string;
4
- map: SourceMap | null;
5
- deps: Set<string>;
6
- };
7
- export type TransformStyle = (source: string, lang: string) => TransformStyleResult | Promise<TransformStyleResult>;
8
1
  export interface CompileCssResult {
9
2
  code: string;
10
3
  /**
@@ -123,9 +123,9 @@ export declare const AstroConfigSchema: z.ZodObject<{
123
123
  redirects: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
124
124
  inlineStylesheets: z.ZodDefault<z.ZodOptional<z.ZodEnum<["always", "auto", "never"]>>>;
125
125
  }, "strip", z.ZodTypeAny, {
126
- server: URL;
127
126
  format: "file" | "directory" | "preserve";
128
127
  client: URL;
128
+ server: URL;
129
129
  assets: string;
130
130
  serverEntry: string;
131
131
  redirects: boolean;
@@ -134,9 +134,9 @@ export declare const AstroConfigSchema: z.ZodObject<{
134
134
  fallback: string;
135
135
  } & Record<string, string>) | undefined;
136
136
  }, {
137
- server?: string | undefined;
138
137
  format?: "file" | "directory" | "preserve" | undefined;
139
138
  client?: string | undefined;
139
+ server?: string | undefined;
140
140
  assets?: string | undefined;
141
141
  serverEntry?: string | undefined;
142
142
  redirects?: boolean | undefined;
@@ -714,12 +714,6 @@ export declare const AstroConfigSchema: z.ZodObject<{
714
714
  }>>;
715
715
  legacy: z.ZodDefault<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
716
716
  }, "strip", z.ZodTypeAny, {
717
- server: {
718
- host: string | boolean;
719
- port: number;
720
- open: string | boolean;
721
- headers?: OutgoingHttpHeaders | undefined;
722
- };
723
717
  image: {
724
718
  service: {
725
719
  entrypoint: string;
@@ -734,6 +728,12 @@ export declare const AstroConfigSchema: z.ZodObject<{
734
728
  }[];
735
729
  endpoint?: string | undefined;
736
730
  };
731
+ server: {
732
+ host: string | boolean;
733
+ port: number;
734
+ open: string | boolean;
735
+ headers?: OutgoingHttpHeaders | undefined;
736
+ };
737
737
  redirects: Record<string, string | {
738
738
  status: 300 | 301 | 302 | 303 | 304 | 307 | 308;
739
739
  destination: string;
@@ -755,9 +755,9 @@ export declare const AstroConfigSchema: z.ZodObject<{
755
755
  };
756
756
  }[];
757
757
  build: {
758
- server: URL;
759
758
  format: "file" | "directory" | "preserve";
760
759
  client: URL;
760
+ server: URL;
761
761
  assets: string;
762
762
  serverEntry: string;
763
763
  redirects: boolean;
@@ -866,7 +866,6 @@ export declare const AstroConfigSchema: z.ZodObject<{
866
866
  } | undefined;
867
867
  }, {
868
868
  site?: string | undefined;
869
- server?: unknown;
870
869
  image?: {
871
870
  endpoint?: string | undefined;
872
871
  service?: {
@@ -881,6 +880,7 @@ export declare const AstroConfigSchema: z.ZodObject<{
881
880
  pathname?: string | undefined;
882
881
  }[] | undefined;
883
882
  } | undefined;
883
+ server?: unknown;
884
884
  redirects?: Record<string, string | {
885
885
  status: 300 | 301 | 302 | 303 | 304 | 307 | 308;
886
886
  destination: string;
@@ -901,9 +901,9 @@ export declare const AstroConfigSchema: z.ZodObject<{
901
901
  } | undefined;
902
902
  integrations?: unknown;
903
903
  build?: {
904
- server?: string | undefined;
905
904
  format?: "file" | "directory" | "preserve" | undefined;
906
905
  client?: string | undefined;
906
+ server?: string | undefined;
907
907
  assets?: string | undefined;
908
908
  serverEntry?: string | undefined;
909
909
  redirects?: boolean | undefined;
@@ -1066,9 +1066,9 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
1066
1066
  redirects: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1067
1067
  inlineStylesheets: z.ZodDefault<z.ZodOptional<z.ZodEnum<["always", "auto", "never"]>>>;
1068
1068
  }, "strip", z.ZodTypeAny, {
1069
- server: URL;
1070
1069
  format: "file" | "directory" | "preserve";
1071
1070
  client: URL;
1071
+ server: URL;
1072
1072
  assets: string;
1073
1073
  serverEntry: string;
1074
1074
  redirects: boolean;
@@ -1077,9 +1077,9 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
1077
1077
  fallback: string;
1078
1078
  } & Record<string, string>) | undefined;
1079
1079
  }, {
1080
- server?: string | undefined;
1081
1080
  format?: "file" | "directory" | "preserve" | undefined;
1082
1081
  client?: string | undefined;
1082
+ server?: string | undefined;
1083
1083
  assets?: string | undefined;
1084
1084
  serverEntry?: string | undefined;
1085
1085
  redirects?: boolean | undefined;
@@ -1683,9 +1683,9 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
1683
1683
  redirects: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1684
1684
  inlineStylesheets: z.ZodDefault<z.ZodOptional<z.ZodEnum<["always", "auto", "never"]>>>;
1685
1685
  }, "strip", z.ZodTypeAny, {
1686
- server: import("url").URL;
1687
1686
  format: "file" | "directory" | "preserve";
1688
1687
  client: import("url").URL;
1688
+ server: import("url").URL;
1689
1689
  assets: string;
1690
1690
  serverEntry: string;
1691
1691
  redirects: boolean;
@@ -1694,9 +1694,9 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
1694
1694
  fallback: string;
1695
1695
  } & Record<string, string>) | undefined;
1696
1696
  }, {
1697
- server?: string | undefined;
1698
1697
  format?: "file" | "directory" | "preserve" | undefined;
1699
1698
  client?: string | undefined;
1699
+ server?: string | undefined;
1700
1700
  assets?: string | undefined;
1701
1701
  serverEntry?: string | undefined;
1702
1702
  redirects?: boolean | undefined;
@@ -1731,13 +1731,6 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
1731
1731
  headers?: OutgoingHttpHeaders | undefined;
1732
1732
  }, unknown>;
1733
1733
  }>, "strip", z.ZodTypeAny, {
1734
- server: {
1735
- host: string | boolean;
1736
- port: number;
1737
- open: string | boolean;
1738
- streaming: boolean;
1739
- headers?: OutgoingHttpHeaders | undefined;
1740
- };
1741
1734
  image: {
1742
1735
  service: {
1743
1736
  entrypoint: string;
@@ -1752,6 +1745,13 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
1752
1745
  }[];
1753
1746
  endpoint?: string | undefined;
1754
1747
  };
1748
+ server: {
1749
+ host: string | boolean;
1750
+ port: number;
1751
+ open: string | boolean;
1752
+ streaming: boolean;
1753
+ headers?: OutgoingHttpHeaders | undefined;
1754
+ };
1755
1755
  redirects: Record<string, string | {
1756
1756
  status: 300 | 301 | 302 | 303 | 304 | 307 | 308;
1757
1757
  destination: string;
@@ -1773,9 +1773,9 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
1773
1773
  };
1774
1774
  }[];
1775
1775
  build: {
1776
- server: import("url").URL;
1777
1776
  format: "file" | "directory" | "preserve";
1778
1777
  client: import("url").URL;
1778
+ server: import("url").URL;
1779
1779
  assets: string;
1780
1780
  serverEntry: string;
1781
1781
  redirects: boolean;
@@ -1884,7 +1884,6 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
1884
1884
  } | undefined;
1885
1885
  }, {
1886
1886
  site?: string | undefined;
1887
- server?: unknown;
1888
1887
  image?: {
1889
1888
  endpoint?: string | undefined;
1890
1889
  service?: {
@@ -1899,6 +1898,7 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
1899
1898
  pathname?: string | undefined;
1900
1899
  }[] | undefined;
1901
1900
  } | undefined;
1901
+ server?: unknown;
1902
1902
  redirects?: Record<string, string | {
1903
1903
  status: 300 | 301 | 302 | 303 | 304 | 307 | 308;
1904
1904
  destination: string;
@@ -1919,9 +1919,9 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
1919
1919
  } | undefined;
1920
1920
  integrations?: unknown;
1921
1921
  build?: {
1922
- server?: string | undefined;
1923
1922
  format?: "file" | "directory" | "preserve" | undefined;
1924
1923
  client?: string | undefined;
1924
+ server?: string | undefined;
1925
1925
  assets?: string | undefined;
1926
1926
  serverEntry?: string | undefined;
1927
1927
  redirects?: boolean | undefined;
@@ -2022,13 +2022,6 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
2022
2022
  } | undefined;
2023
2023
  legacy?: {} | undefined;
2024
2024
  }>, {
2025
- server: {
2026
- host: string | boolean;
2027
- port: number;
2028
- open: string | boolean;
2029
- streaming: boolean;
2030
- headers?: OutgoingHttpHeaders | undefined;
2031
- };
2032
2025
  image: {
2033
2026
  service: {
2034
2027
  entrypoint: string;
@@ -2043,6 +2036,13 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
2043
2036
  }[];
2044
2037
  endpoint?: string | undefined;
2045
2038
  };
2039
+ server: {
2040
+ host: string | boolean;
2041
+ port: number;
2042
+ open: string | boolean;
2043
+ streaming: boolean;
2044
+ headers?: OutgoingHttpHeaders | undefined;
2045
+ };
2046
2046
  redirects: Record<string, string | {
2047
2047
  status: 300 | 301 | 302 | 303 | 304 | 307 | 308;
2048
2048
  destination: string;
@@ -2064,9 +2064,9 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
2064
2064
  };
2065
2065
  }[];
2066
2066
  build: {
2067
- server: import("url").URL;
2068
2067
  format: "file" | "directory" | "preserve";
2069
2068
  client: import("url").URL;
2069
+ server: import("url").URL;
2070
2070
  assets: string;
2071
2071
  serverEntry: string;
2072
2072
  redirects: boolean;
@@ -2175,7 +2175,6 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
2175
2175
  } | undefined;
2176
2176
  }, {
2177
2177
  site?: string | undefined;
2178
- server?: unknown;
2179
2178
  image?: {
2180
2179
  endpoint?: string | undefined;
2181
2180
  service?: {
@@ -2190,6 +2189,7 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
2190
2189
  pathname?: string | undefined;
2191
2190
  }[] | undefined;
2192
2191
  } | undefined;
2192
+ server?: unknown;
2193
2193
  redirects?: Record<string, string | {
2194
2194
  status: 300 | 301 | 302 | 303 | 304 | 307 | 308;
2195
2195
  destination: string;
@@ -2210,9 +2210,9 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
2210
2210
  } | undefined;
2211
2211
  integrations?: unknown;
2212
2212
  build?: {
2213
- server?: string | undefined;
2214
2213
  format?: "file" | "directory" | "preserve" | undefined;
2215
2214
  client?: string | undefined;
2215
+ server?: string | undefined;
2216
2216
  assets?: string | undefined;
2217
2217
  serverEntry?: string | undefined;
2218
2218
  redirects?: boolean | undefined;
@@ -2313,13 +2313,6 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
2313
2313
  } | undefined;
2314
2314
  legacy?: {} | undefined;
2315
2315
  }>, {
2316
- server: {
2317
- host: string | boolean;
2318
- port: number;
2319
- open: string | boolean;
2320
- streaming: boolean;
2321
- headers?: OutgoingHttpHeaders | undefined;
2322
- };
2323
2316
  image: {
2324
2317
  service: {
2325
2318
  entrypoint: string;
@@ -2334,6 +2327,13 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
2334
2327
  }[];
2335
2328
  endpoint?: string | undefined;
2336
2329
  };
2330
+ server: {
2331
+ host: string | boolean;
2332
+ port: number;
2333
+ open: string | boolean;
2334
+ streaming: boolean;
2335
+ headers?: OutgoingHttpHeaders | undefined;
2336
+ };
2337
2337
  redirects: Record<string, string | {
2338
2338
  status: 300 | 301 | 302 | 303 | 304 | 307 | 308;
2339
2339
  destination: string;
@@ -2355,9 +2355,9 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
2355
2355
  };
2356
2356
  }[];
2357
2357
  build: {
2358
- server: import("url").URL;
2359
2358
  format: "file" | "directory" | "preserve";
2360
2359
  client: import("url").URL;
2360
+ server: import("url").URL;
2361
2361
  assets: string;
2362
2362
  serverEntry: string;
2363
2363
  redirects: boolean;
@@ -2466,7 +2466,6 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
2466
2466
  } | undefined;
2467
2467
  }, {
2468
2468
  site?: string | undefined;
2469
- server?: unknown;
2470
2469
  image?: {
2471
2470
  endpoint?: string | undefined;
2472
2471
  service?: {
@@ -2481,6 +2480,7 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
2481
2480
  pathname?: string | undefined;
2482
2481
  }[] | undefined;
2483
2482
  } | undefined;
2483
+ server?: unknown;
2484
2484
  redirects?: Record<string, string | {
2485
2485
  status: 300 | 301 | 302 | 303 | 304 | 307 | 308;
2486
2486
  destination: string;
@@ -2501,9 +2501,9 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
2501
2501
  } | undefined;
2502
2502
  integrations?: unknown;
2503
2503
  build?: {
2504
- server?: string | undefined;
2505
2504
  format?: "file" | "directory" | "preserve" | undefined;
2506
2505
  client?: string | undefined;
2506
+ server?: string | undefined;
2507
2507
  assets?: string | undefined;
2508
2508
  serverEntry?: string | undefined;
2509
2509
  redirects?: boolean | undefined;
@@ -2604,13 +2604,6 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
2604
2604
  } | undefined;
2605
2605
  legacy?: {} | undefined;
2606
2606
  }>, {
2607
- server: {
2608
- host: string | boolean;
2609
- port: number;
2610
- open: string | boolean;
2611
- streaming: boolean;
2612
- headers?: OutgoingHttpHeaders | undefined;
2613
- };
2614
2607
  image: {
2615
2608
  service: {
2616
2609
  entrypoint: string;
@@ -2625,6 +2618,13 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
2625
2618
  }[];
2626
2619
  endpoint?: string | undefined;
2627
2620
  };
2621
+ server: {
2622
+ host: string | boolean;
2623
+ port: number;
2624
+ open: string | boolean;
2625
+ streaming: boolean;
2626
+ headers?: OutgoingHttpHeaders | undefined;
2627
+ };
2628
2628
  redirects: Record<string, string | {
2629
2629
  status: 300 | 301 | 302 | 303 | 304 | 307 | 308;
2630
2630
  destination: string;
@@ -2646,9 +2646,9 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
2646
2646
  };
2647
2647
  }[];
2648
2648
  build: {
2649
- server: import("url").URL;
2650
2649
  format: "file" | "directory" | "preserve";
2651
2650
  client: import("url").URL;
2651
+ server: import("url").URL;
2652
2652
  assets: string;
2653
2653
  serverEntry: string;
2654
2654
  redirects: boolean;
@@ -2757,7 +2757,6 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
2757
2757
  } | undefined;
2758
2758
  }, {
2759
2759
  site?: string | undefined;
2760
- server?: unknown;
2761
2760
  image?: {
2762
2761
  endpoint?: string | undefined;
2763
2762
  service?: {
@@ -2772,6 +2771,7 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
2772
2771
  pathname?: string | undefined;
2773
2772
  }[] | undefined;
2774
2773
  } | undefined;
2774
+ server?: unknown;
2775
2775
  redirects?: Record<string, string | {
2776
2776
  status: 300 | 301 | 302 | 303 | 304 | 307 | 308;
2777
2777
  destination: string;
@@ -2792,9 +2792,9 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
2792
2792
  } | undefined;
2793
2793
  integrations?: unknown;
2794
2794
  build?: {
2795
- server?: string | undefined;
2796
2795
  format?: "file" | "directory" | "preserve" | undefined;
2797
2796
  client?: string | undefined;
2797
+ server?: string | undefined;
2798
2798
  assets?: string | undefined;
2799
2799
  serverEntry?: string | undefined;
2800
2800
  redirects?: boolean | undefined;