astro 2.5.5 → 2.5.6

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 (46) hide show
  1. package/dist/@types/astro.d.ts +3 -2
  2. package/dist/assets/services/service.js +6 -0
  3. package/dist/assets/utils/emitAsset.d.ts +1 -3
  4. package/dist/assets/utils/emitAsset.js +4 -15
  5. package/dist/assets/vite-plugin-assets.js +5 -5
  6. package/dist/content/runtime-assets.d.ts +1 -2
  7. package/dist/content/runtime-assets.js +2 -3
  8. package/dist/content/runtime.js +1 -1
  9. package/dist/content/types-generator.js +9 -5
  10. package/dist/content/utils.d.ts +2 -2
  11. package/dist/content/utils.js +4 -4
  12. package/dist/content/vite-plugin-content-imports.js +113 -150
  13. package/dist/content/vite-plugin-content-virtual-mod.d.ts +3 -3
  14. package/dist/content/vite-plugin-content-virtual-mod.js +7 -3
  15. package/dist/core/app/index.d.ts +0 -2
  16. package/dist/core/app/index.js +5 -7
  17. package/dist/core/app/types.d.ts +3 -2
  18. package/dist/core/build/generate.js +16 -11
  19. package/dist/core/build/graph.js +3 -2
  20. package/dist/core/build/internal.d.ts +8 -4
  21. package/dist/core/build/internal.js +19 -1
  22. package/dist/core/build/plugins/plugin-css.js +9 -14
  23. package/dist/core/build/plugins/plugin-middleware.d.ts +0 -1
  24. package/dist/core/build/plugins/plugin-middleware.js +3 -16
  25. package/dist/core/build/plugins/plugin-pages.d.ts +10 -0
  26. package/dist/core/build/plugins/plugin-pages.js +40 -24
  27. package/dist/core/build/plugins/plugin-ssr.d.ts +2 -2
  28. package/dist/core/build/plugins/plugin-ssr.js +46 -20
  29. package/dist/core/build/static-build.js +18 -5
  30. package/dist/core/build/types.d.ts +2 -2
  31. package/dist/core/config/schema.d.ts +170 -170
  32. package/dist/core/constants.js +1 -1
  33. package/dist/core/dev/dev.js +1 -1
  34. package/dist/core/errors/errors-data.d.ts +57 -8
  35. package/dist/core/errors/errors-data.js +57 -12
  36. package/dist/core/messages.js +2 -2
  37. package/dist/core/render/dev/index.js +1 -2
  38. package/dist/prerender/routing.d.ts +13 -0
  39. package/dist/prerender/routing.js +49 -0
  40. package/dist/runtime/server/astro-global.js +11 -1
  41. package/dist/runtime/server/index.d.ts +1 -1
  42. package/dist/runtime/server/index.js +9 -1
  43. package/dist/runtime/server/render/astro/instance.js +3 -0
  44. package/dist/runtime/server/scripts.js +1 -1
  45. package/dist/vite-plugin-astro-server/route.js +3 -11
  46. package/package.json +4 -4
@@ -48,17 +48,17 @@ export declare const AstroConfigSchema: z.ZodObject<{
48
48
  serverEntry: z.ZodDefault<z.ZodOptional<z.ZodString>>;
49
49
  }, "strip", z.ZodTypeAny, {
50
50
  assetsPrefix?: string | undefined;
51
- assets: string;
52
51
  server: URL;
53
52
  format: "file" | "directory";
54
53
  client: URL;
54
+ assets: string;
55
55
  serverEntry: string;
56
56
  }, {
57
- assets?: string | undefined;
58
- assetsPrefix?: string | undefined;
59
57
  server?: string | undefined;
60
58
  format?: "file" | "directory" | undefined;
61
59
  client?: string | undefined;
60
+ assets?: string | undefined;
61
+ assetsPrefix?: string | undefined;
62
62
  serverEntry?: string | undefined;
63
63
  }>>>;
64
64
  server: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodObject<{
@@ -161,27 +161,27 @@ export declare const AstroConfigSchema: z.ZodObject<{
161
161
  hybridOutput: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
162
162
  }, "passthrough", z.ZodTypeAny, {
163
163
  assets: boolean;
164
- middleware: boolean;
165
164
  customClientDirectives: boolean;
166
165
  inlineStylesheets: "never" | "always" | "auto";
166
+ middleware: boolean;
167
167
  hybridOutput: boolean;
168
168
  }, {
169
169
  assets?: boolean | undefined;
170
- middleware?: boolean | undefined;
171
170
  customClientDirectives?: boolean | undefined;
172
171
  inlineStylesheets?: "never" | "always" | "auto" | undefined;
172
+ middleware?: boolean | undefined;
173
173
  hybridOutput?: boolean | undefined;
174
174
  }>, {
175
175
  assets: boolean;
176
- middleware: boolean;
177
176
  customClientDirectives: boolean;
178
177
  inlineStylesheets: "never" | "always" | "auto";
178
+ middleware: boolean;
179
179
  hybridOutput: boolean;
180
180
  }, {
181
181
  assets?: boolean | undefined;
182
- middleware?: boolean | undefined;
183
182
  customClientDirectives?: boolean | undefined;
184
183
  inlineStylesheets?: "never" | "always" | "auto" | undefined;
184
+ middleware?: boolean | undefined;
185
185
  hybridOutput?: boolean | undefined;
186
186
  }>>>;
187
187
  legacy: z.ZodDefault<z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>>;
@@ -191,21 +191,6 @@ export declare const AstroConfigSchema: z.ZodObject<{
191
191
  name: string;
192
192
  hooks: {};
193
193
  } | undefined;
194
- base: string;
195
- markdown: {
196
- drafts: boolean;
197
- syntaxHighlight: false | "shiki" | "prism";
198
- shikiConfig: {
199
- langs: ILanguageRegistration[];
200
- theme: string | import("shiki").IShikiTheme;
201
- wrap: boolean | null;
202
- };
203
- remarkPlugins: (string | [string, any] | RemarkPlugin | [RemarkPlugin, any])[];
204
- rehypePlugins: (string | [string, any] | RehypePlugin | [RehypePlugin, any])[];
205
- remarkRehype: RemarkRehype;
206
- gfm: boolean;
207
- smartypants: boolean;
208
- };
209
194
  output: "static" | "server" | "hybrid";
210
195
  root: URL;
211
196
  srcDir: URL;
@@ -213,6 +198,7 @@ export declare const AstroConfigSchema: z.ZodObject<{
213
198
  outDir: URL;
214
199
  cacheDir: URL;
215
200
  compressHTML: boolean;
201
+ base: string;
216
202
  trailingSlash: "never" | "always" | "ignore";
217
203
  server: {
218
204
  headers?: OutgoingHttpHeaders | undefined;
@@ -227,10 +213,10 @@ export declare const AstroConfigSchema: z.ZodObject<{
227
213
  }[];
228
214
  build: {
229
215
  assetsPrefix?: string | undefined;
230
- assets: string;
231
216
  server: URL;
232
217
  format: "file" | "directory";
233
218
  client: URL;
219
+ assets: string;
234
220
  serverEntry: string;
235
221
  };
236
222
  image: {
@@ -239,39 +225,39 @@ export declare const AstroConfigSchema: z.ZodObject<{
239
225
  config: Record<string, any>;
240
226
  };
241
227
  };
228
+ markdown: {
229
+ drafts: boolean;
230
+ syntaxHighlight: false | "shiki" | "prism";
231
+ shikiConfig: {
232
+ langs: ILanguageRegistration[];
233
+ theme: string | import("shiki").IShikiTheme;
234
+ wrap: boolean | null;
235
+ };
236
+ remarkPlugins: (string | [string, any] | RemarkPlugin | [RemarkPlugin, any])[];
237
+ rehypePlugins: (string | [string, any] | RehypePlugin | [RehypePlugin, any])[];
238
+ remarkRehype: RemarkRehype;
239
+ gfm: boolean;
240
+ smartypants: boolean;
241
+ };
242
242
  vite: ViteUserConfig;
243
243
  experimental: {
244
244
  assets: boolean;
245
- middleware: boolean;
246
245
  customClientDirectives: boolean;
247
246
  inlineStylesheets: "never" | "always" | "auto";
247
+ middleware: boolean;
248
248
  hybridOutput: boolean;
249
249
  };
250
250
  legacy: {};
251
251
  }, {
252
- site?: string | undefined;
253
- base?: string | undefined;
254
- markdown?: {
255
- drafts?: boolean | undefined;
256
- syntaxHighlight?: false | "shiki" | "prism" | undefined;
257
- shikiConfig?: {
258
- langs?: ILanguageRegistration[] | undefined;
259
- theme?: string | import("shiki").IShikiTheme | undefined;
260
- wrap?: boolean | null | undefined;
261
- } | undefined;
262
- remarkPlugins?: (string | [string, any] | RemarkPlugin | [RemarkPlugin, any])[] | undefined;
263
- rehypePlugins?: (string | [string, any] | RehypePlugin | [RehypePlugin, any])[] | undefined;
264
- remarkRehype?: RemarkRehype | undefined;
265
- gfm?: boolean | undefined;
266
- smartypants?: boolean | undefined;
267
- } | undefined;
268
252
  output?: "static" | "server" | "hybrid" | undefined;
269
253
  root?: string | undefined;
270
254
  srcDir?: string | undefined;
271
255
  publicDir?: string | undefined;
272
256
  outDir?: string | undefined;
273
257
  cacheDir?: string | undefined;
258
+ site?: string | undefined;
274
259
  compressHTML?: boolean | undefined;
260
+ base?: string | undefined;
275
261
  trailingSlash?: "never" | "always" | "ignore" | undefined;
276
262
  server?: unknown;
277
263
  scopedStyleStrategy?: "where" | "class" | undefined;
@@ -281,11 +267,11 @@ export declare const AstroConfigSchema: z.ZodObject<{
281
267
  } | undefined;
282
268
  integrations?: unknown;
283
269
  build?: {
284
- assets?: string | undefined;
285
- assetsPrefix?: string | undefined;
286
270
  server?: string | undefined;
287
271
  format?: "file" | "directory" | undefined;
288
272
  client?: string | undefined;
273
+ assets?: string | undefined;
274
+ assetsPrefix?: string | undefined;
289
275
  serverEntry?: string | undefined;
290
276
  } | undefined;
291
277
  image?: {
@@ -294,54 +280,7 @@ export declare const AstroConfigSchema: z.ZodObject<{
294
280
  entrypoint: string;
295
281
  };
296
282
  } | undefined;
297
- vite?: ViteUserConfig | undefined;
298
- experimental?: {
299
- assets?: boolean | undefined;
300
- middleware?: boolean | undefined;
301
- customClientDirectives?: boolean | undefined;
302
- inlineStylesheets?: "never" | "always" | "auto" | undefined;
303
- hybridOutput?: boolean | undefined;
304
- } | undefined;
305
- legacy?: {} | undefined;
306
- }>;
307
- export declare function createRelativeSchema(cmd: string, fileProtocolRoot: URL): z.ZodEffects<z.ZodObject<{
308
- site: z.ZodOptional<z.ZodString>;
309
- base: z.ZodDefault<z.ZodOptional<z.ZodString>>;
310
- markdown: z.ZodDefault<z.ZodObject<{
311
- drafts: z.ZodDefault<z.ZodBoolean>;
312
- syntaxHighlight: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"shiki">, z.ZodLiteral<"prism">, z.ZodLiteral<false>]>>;
313
- shikiConfig: z.ZodDefault<z.ZodObject<{
314
- langs: z.ZodDefault<z.ZodArray<z.ZodType<ILanguageRegistration, z.ZodTypeDef, ILanguageRegistration>, "many">>;
315
- theme: z.ZodDefault<z.ZodUnion<[z.ZodEnum<[Theme, ...Theme[]]>, z.ZodType<IThemeRegistration, z.ZodTypeDef, IThemeRegistration>]>>;
316
- wrap: z.ZodDefault<z.ZodUnion<[z.ZodBoolean, z.ZodNull]>>;
317
- }, "strip", z.ZodTypeAny, {
318
- langs: ILanguageRegistration[];
319
- theme: string | import("shiki").IShikiTheme;
320
- wrap: boolean | null;
321
- }, {
322
- langs?: ILanguageRegistration[] | undefined;
323
- theme?: string | import("shiki").IShikiTheme | undefined;
324
- wrap?: boolean | null | undefined;
325
- }>>;
326
- remarkPlugins: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodAny], null>, z.ZodType<RemarkPlugin, z.ZodTypeDef, RemarkPlugin>, z.ZodTuple<[z.ZodType<RemarkPlugin, z.ZodTypeDef, RemarkPlugin>, z.ZodAny], null>]>, "many">>;
327
- rehypePlugins: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodAny], null>, z.ZodType<RehypePlugin, z.ZodTypeDef, RehypePlugin>, z.ZodTuple<[z.ZodType<RehypePlugin, z.ZodTypeDef, RehypePlugin>, z.ZodAny], null>]>, "many">>;
328
- remarkRehype: z.ZodDefault<z.ZodOptional<z.ZodType<RemarkRehype, z.ZodTypeDef, RemarkRehype>>>;
329
- gfm: z.ZodDefault<z.ZodBoolean>;
330
- smartypants: z.ZodDefault<z.ZodBoolean>;
331
- }, "strip", z.ZodTypeAny, {
332
- drafts: boolean;
333
- syntaxHighlight: false | "shiki" | "prism";
334
- shikiConfig: {
335
- langs: ILanguageRegistration[];
336
- theme: string | import("shiki").IShikiTheme;
337
- wrap: boolean | null;
338
- };
339
- remarkPlugins: (string | [string, any] | RemarkPlugin | [RemarkPlugin, any])[];
340
- rehypePlugins: (string | [string, any] | RehypePlugin | [RehypePlugin, any])[];
341
- remarkRehype: RemarkRehype;
342
- gfm: boolean;
343
- smartypants: boolean;
344
- }, {
283
+ markdown?: {
345
284
  drafts?: boolean | undefined;
346
285
  syntaxHighlight?: false | "shiki" | "prism" | undefined;
347
286
  shikiConfig?: {
@@ -354,8 +293,21 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: URL)
354
293
  remarkRehype?: RemarkRehype | undefined;
355
294
  gfm?: boolean | undefined;
356
295
  smartypants?: boolean | undefined;
357
- }>>;
296
+ } | undefined;
297
+ vite?: ViteUserConfig | undefined;
298
+ experimental?: {
299
+ assets?: boolean | undefined;
300
+ customClientDirectives?: boolean | undefined;
301
+ inlineStylesheets?: "never" | "always" | "auto" | undefined;
302
+ middleware?: boolean | undefined;
303
+ hybridOutput?: boolean | undefined;
304
+ } | undefined;
305
+ legacy?: {} | undefined;
306
+ }>;
307
+ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: URL): z.ZodEffects<z.ZodObject<{
358
308
  output: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"static">, z.ZodLiteral<"server">, z.ZodLiteral<"hybrid">]>>>;
309
+ site: z.ZodOptional<z.ZodString>;
310
+ base: z.ZodDefault<z.ZodOptional<z.ZodString>>;
359
311
  trailingSlash: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"always">, z.ZodLiteral<"never">, z.ZodLiteral<"ignore">]>>>;
360
312
  scopedStyleStrategy: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"where">, z.ZodLiteral<"class">]>>>;
361
313
  adapter: z.ZodOptional<z.ZodObject<{
@@ -403,6 +355,54 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: URL)
403
355
  entrypoint: string;
404
356
  };
405
357
  }>>;
358
+ markdown: z.ZodDefault<z.ZodObject<{
359
+ drafts: z.ZodDefault<z.ZodBoolean>;
360
+ syntaxHighlight: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"shiki">, z.ZodLiteral<"prism">, z.ZodLiteral<false>]>>;
361
+ shikiConfig: z.ZodDefault<z.ZodObject<{
362
+ langs: z.ZodDefault<z.ZodArray<z.ZodType<ILanguageRegistration, z.ZodTypeDef, ILanguageRegistration>, "many">>;
363
+ theme: z.ZodDefault<z.ZodUnion<[z.ZodEnum<[Theme, ...Theme[]]>, z.ZodType<IThemeRegistration, z.ZodTypeDef, IThemeRegistration>]>>;
364
+ wrap: z.ZodDefault<z.ZodUnion<[z.ZodBoolean, z.ZodNull]>>;
365
+ }, "strip", z.ZodTypeAny, {
366
+ langs: ILanguageRegistration[];
367
+ theme: string | import("shiki").IShikiTheme;
368
+ wrap: boolean | null;
369
+ }, {
370
+ langs?: ILanguageRegistration[] | undefined;
371
+ theme?: string | import("shiki").IShikiTheme | undefined;
372
+ wrap?: boolean | null | undefined;
373
+ }>>;
374
+ remarkPlugins: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodAny], null>, z.ZodType<RemarkPlugin, z.ZodTypeDef, RemarkPlugin>, z.ZodTuple<[z.ZodType<RemarkPlugin, z.ZodTypeDef, RemarkPlugin>, z.ZodAny], null>]>, "many">>;
375
+ rehypePlugins: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodAny], null>, z.ZodType<RehypePlugin, z.ZodTypeDef, RehypePlugin>, z.ZodTuple<[z.ZodType<RehypePlugin, z.ZodTypeDef, RehypePlugin>, z.ZodAny], null>]>, "many">>;
376
+ remarkRehype: z.ZodDefault<z.ZodOptional<z.ZodType<RemarkRehype, z.ZodTypeDef, RemarkRehype>>>;
377
+ gfm: z.ZodDefault<z.ZodBoolean>;
378
+ smartypants: z.ZodDefault<z.ZodBoolean>;
379
+ }, "strip", z.ZodTypeAny, {
380
+ drafts: boolean;
381
+ syntaxHighlight: false | "shiki" | "prism";
382
+ shikiConfig: {
383
+ langs: ILanguageRegistration[];
384
+ theme: string | import("shiki").IShikiTheme;
385
+ wrap: boolean | null;
386
+ };
387
+ remarkPlugins: (string | [string, any] | RemarkPlugin | [RemarkPlugin, any])[];
388
+ rehypePlugins: (string | [string, any] | RehypePlugin | [RehypePlugin, any])[];
389
+ remarkRehype: RemarkRehype;
390
+ gfm: boolean;
391
+ smartypants: boolean;
392
+ }, {
393
+ drafts?: boolean | undefined;
394
+ syntaxHighlight?: false | "shiki" | "prism" | undefined;
395
+ shikiConfig?: {
396
+ langs?: ILanguageRegistration[] | undefined;
397
+ theme?: string | import("shiki").IShikiTheme | undefined;
398
+ wrap?: boolean | null | undefined;
399
+ } | undefined;
400
+ remarkPlugins?: (string | [string, any] | RemarkPlugin | [RemarkPlugin, any])[] | undefined;
401
+ rehypePlugins?: (string | [string, any] | RehypePlugin | [RehypePlugin, any])[] | undefined;
402
+ remarkRehype?: RemarkRehype | undefined;
403
+ gfm?: boolean | undefined;
404
+ smartypants?: boolean | undefined;
405
+ }>>;
406
406
  vite: z.ZodDefault<z.ZodType<ViteUserConfig, z.ZodTypeDef, ViteUserConfig>>;
407
407
  experimental: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodObject<{
408
408
  assets: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
@@ -412,27 +412,27 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: URL)
412
412
  hybridOutput: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
413
413
  }, "passthrough", z.ZodTypeAny, {
414
414
  assets: boolean;
415
- middleware: boolean;
416
415
  customClientDirectives: boolean;
417
416
  inlineStylesheets: "never" | "always" | "auto";
417
+ middleware: boolean;
418
418
  hybridOutput: boolean;
419
419
  }, {
420
420
  assets?: boolean | undefined;
421
- middleware?: boolean | undefined;
422
421
  customClientDirectives?: boolean | undefined;
423
422
  inlineStylesheets?: "never" | "always" | "auto" | undefined;
423
+ middleware?: boolean | undefined;
424
424
  hybridOutput?: boolean | undefined;
425
425
  }>, {
426
426
  assets: boolean;
427
- middleware: boolean;
428
427
  customClientDirectives: boolean;
429
428
  inlineStylesheets: "never" | "always" | "auto";
429
+ middleware: boolean;
430
430
  hybridOutput: boolean;
431
431
  }, {
432
432
  assets?: boolean | undefined;
433
- middleware?: boolean | undefined;
434
433
  customClientDirectives?: boolean | undefined;
435
434
  inlineStylesheets?: "never" | "always" | "auto" | undefined;
435
+ middleware?: boolean | undefined;
436
436
  hybridOutput?: boolean | undefined;
437
437
  }>>>;
438
438
  legacy: z.ZodDefault<z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>>;
@@ -451,17 +451,17 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: URL)
451
451
  serverEntry: z.ZodDefault<z.ZodOptional<z.ZodString>>;
452
452
  }, "strip", z.ZodTypeAny, {
453
453
  assetsPrefix?: string | undefined;
454
- assets: string;
455
454
  server: URL;
456
455
  format: "file" | "directory";
457
456
  client: URL;
457
+ assets: string;
458
458
  serverEntry: string;
459
459
  }, {
460
- assets?: string | undefined;
461
- assetsPrefix?: string | undefined;
462
460
  server?: string | undefined;
463
461
  format?: "file" | "directory" | undefined;
464
462
  client?: string | undefined;
463
+ assets?: string | undefined;
464
+ assetsPrefix?: string | undefined;
465
465
  serverEntry?: string | undefined;
466
466
  }>>>;
467
467
  server: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodObject<{
@@ -495,21 +495,6 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: URL)
495
495
  name: string;
496
496
  hooks: {};
497
497
  } | undefined;
498
- base: string;
499
- markdown: {
500
- drafts: boolean;
501
- syntaxHighlight: false | "shiki" | "prism";
502
- shikiConfig: {
503
- langs: ILanguageRegistration[];
504
- theme: string | import("shiki").IShikiTheme;
505
- wrap: boolean | null;
506
- };
507
- remarkPlugins: (string | [string, any] | RemarkPlugin | [RemarkPlugin, any])[];
508
- rehypePlugins: (string | [string, any] | RehypePlugin | [RehypePlugin, any])[];
509
- remarkRehype: RemarkRehype;
510
- gfm: boolean;
511
- smartypants: boolean;
512
- };
513
498
  output: "static" | "server" | "hybrid";
514
499
  root: URL;
515
500
  srcDir: URL;
@@ -517,6 +502,7 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: URL)
517
502
  outDir: URL;
518
503
  cacheDir: URL;
519
504
  compressHTML: boolean;
505
+ base: string;
520
506
  trailingSlash: "never" | "always" | "ignore";
521
507
  server: {
522
508
  headers?: OutgoingHttpHeaders | undefined;
@@ -532,10 +518,10 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: URL)
532
518
  }[];
533
519
  build: {
534
520
  assetsPrefix?: string | undefined;
535
- assets: string;
536
521
  server: URL;
537
522
  format: "file" | "directory";
538
523
  client: URL;
524
+ assets: string;
539
525
  serverEntry: string;
540
526
  };
541
527
  image: {
@@ -544,39 +530,39 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: URL)
544
530
  config: Record<string, any>;
545
531
  };
546
532
  };
533
+ markdown: {
534
+ drafts: boolean;
535
+ syntaxHighlight: false | "shiki" | "prism";
536
+ shikiConfig: {
537
+ langs: ILanguageRegistration[];
538
+ theme: string | import("shiki").IShikiTheme;
539
+ wrap: boolean | null;
540
+ };
541
+ remarkPlugins: (string | [string, any] | RemarkPlugin | [RemarkPlugin, any])[];
542
+ rehypePlugins: (string | [string, any] | RehypePlugin | [RehypePlugin, any])[];
543
+ remarkRehype: RemarkRehype;
544
+ gfm: boolean;
545
+ smartypants: boolean;
546
+ };
547
547
  vite: ViteUserConfig;
548
548
  experimental: {
549
549
  assets: boolean;
550
- middleware: boolean;
551
550
  customClientDirectives: boolean;
552
551
  inlineStylesheets: "never" | "always" | "auto";
552
+ middleware: boolean;
553
553
  hybridOutput: boolean;
554
554
  };
555
555
  legacy: {};
556
556
  }, {
557
- site?: string | undefined;
558
- base?: string | undefined;
559
- markdown?: {
560
- drafts?: boolean | undefined;
561
- syntaxHighlight?: false | "shiki" | "prism" | undefined;
562
- shikiConfig?: {
563
- langs?: ILanguageRegistration[] | undefined;
564
- theme?: string | import("shiki").IShikiTheme | undefined;
565
- wrap?: boolean | null | undefined;
566
- } | undefined;
567
- remarkPlugins?: (string | [string, any] | RemarkPlugin | [RemarkPlugin, any])[] | undefined;
568
- rehypePlugins?: (string | [string, any] | RehypePlugin | [RehypePlugin, any])[] | undefined;
569
- remarkRehype?: RemarkRehype | undefined;
570
- gfm?: boolean | undefined;
571
- smartypants?: boolean | undefined;
572
- } | undefined;
573
557
  output?: "static" | "server" | "hybrid" | undefined;
574
558
  root?: string | undefined;
575
559
  srcDir?: string | undefined;
576
560
  publicDir?: string | undefined;
577
561
  outDir?: string | undefined;
578
562
  cacheDir?: string | undefined;
563
+ site?: string | undefined;
579
564
  compressHTML?: boolean | undefined;
565
+ base?: string | undefined;
580
566
  trailingSlash?: "never" | "always" | "ignore" | undefined;
581
567
  server?: unknown;
582
568
  scopedStyleStrategy?: "where" | "class" | undefined;
@@ -586,11 +572,11 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: URL)
586
572
  } | undefined;
587
573
  integrations?: unknown;
588
574
  build?: {
589
- assets?: string | undefined;
590
- assetsPrefix?: string | undefined;
591
575
  server?: string | undefined;
592
576
  format?: "file" | "directory" | undefined;
593
577
  client?: string | undefined;
578
+ assets?: string | undefined;
579
+ assetsPrefix?: string | undefined;
594
580
  serverEntry?: string | undefined;
595
581
  } | undefined;
596
582
  image?: {
@@ -599,12 +585,26 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: URL)
599
585
  entrypoint: string;
600
586
  };
601
587
  } | undefined;
588
+ markdown?: {
589
+ drafts?: boolean | undefined;
590
+ syntaxHighlight?: false | "shiki" | "prism" | undefined;
591
+ shikiConfig?: {
592
+ langs?: ILanguageRegistration[] | undefined;
593
+ theme?: string | import("shiki").IShikiTheme | undefined;
594
+ wrap?: boolean | null | undefined;
595
+ } | undefined;
596
+ remarkPlugins?: (string | [string, any] | RemarkPlugin | [RemarkPlugin, any])[] | undefined;
597
+ rehypePlugins?: (string | [string, any] | RehypePlugin | [RehypePlugin, any])[] | undefined;
598
+ remarkRehype?: RemarkRehype | undefined;
599
+ gfm?: boolean | undefined;
600
+ smartypants?: boolean | undefined;
601
+ } | undefined;
602
602
  vite?: ViteUserConfig | undefined;
603
603
  experimental?: {
604
604
  assets?: boolean | undefined;
605
- middleware?: boolean | undefined;
606
605
  customClientDirectives?: boolean | undefined;
607
606
  inlineStylesheets?: "never" | "always" | "auto" | undefined;
607
+ middleware?: boolean | undefined;
608
608
  hybridOutput?: boolean | undefined;
609
609
  } | undefined;
610
610
  legacy?: {} | undefined;
@@ -614,21 +614,6 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: URL)
614
614
  name: string;
615
615
  hooks: {};
616
616
  } | undefined;
617
- base: string;
618
- markdown: {
619
- drafts: boolean;
620
- syntaxHighlight: false | "shiki" | "prism";
621
- shikiConfig: {
622
- langs: ILanguageRegistration[];
623
- theme: string | import("shiki").IShikiTheme;
624
- wrap: boolean | null;
625
- };
626
- remarkPlugins: (string | [string, any] | RemarkPlugin | [RemarkPlugin, any])[];
627
- rehypePlugins: (string | [string, any] | RehypePlugin | [RehypePlugin, any])[];
628
- remarkRehype: RemarkRehype;
629
- gfm: boolean;
630
- smartypants: boolean;
631
- };
632
617
  output: "static" | "server" | "hybrid";
633
618
  root: URL;
634
619
  srcDir: URL;
@@ -636,6 +621,7 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: URL)
636
621
  outDir: URL;
637
622
  cacheDir: URL;
638
623
  compressHTML: boolean;
624
+ base: string;
639
625
  trailingSlash: "never" | "always" | "ignore";
640
626
  server: {
641
627
  headers?: OutgoingHttpHeaders | undefined;
@@ -651,10 +637,10 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: URL)
651
637
  }[];
652
638
  build: {
653
639
  assetsPrefix?: string | undefined;
654
- assets: string;
655
640
  server: URL;
656
641
  format: "file" | "directory";
657
642
  client: URL;
643
+ assets: string;
658
644
  serverEntry: string;
659
645
  };
660
646
  image: {
@@ -663,39 +649,39 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: URL)
663
649
  config: Record<string, any>;
664
650
  };
665
651
  };
652
+ markdown: {
653
+ drafts: boolean;
654
+ syntaxHighlight: false | "shiki" | "prism";
655
+ shikiConfig: {
656
+ langs: ILanguageRegistration[];
657
+ theme: string | import("shiki").IShikiTheme;
658
+ wrap: boolean | null;
659
+ };
660
+ remarkPlugins: (string | [string, any] | RemarkPlugin | [RemarkPlugin, any])[];
661
+ rehypePlugins: (string | [string, any] | RehypePlugin | [RehypePlugin, any])[];
662
+ remarkRehype: RemarkRehype;
663
+ gfm: boolean;
664
+ smartypants: boolean;
665
+ };
666
666
  vite: ViteUserConfig;
667
667
  experimental: {
668
668
  assets: boolean;
669
- middleware: boolean;
670
669
  customClientDirectives: boolean;
671
670
  inlineStylesheets: "never" | "always" | "auto";
671
+ middleware: boolean;
672
672
  hybridOutput: boolean;
673
673
  };
674
674
  legacy: {};
675
675
  }, {
676
- site?: string | undefined;
677
- base?: string | undefined;
678
- markdown?: {
679
- drafts?: boolean | undefined;
680
- syntaxHighlight?: false | "shiki" | "prism" | undefined;
681
- shikiConfig?: {
682
- langs?: ILanguageRegistration[] | undefined;
683
- theme?: string | import("shiki").IShikiTheme | undefined;
684
- wrap?: boolean | null | undefined;
685
- } | undefined;
686
- remarkPlugins?: (string | [string, any] | RemarkPlugin | [RemarkPlugin, any])[] | undefined;
687
- rehypePlugins?: (string | [string, any] | RehypePlugin | [RehypePlugin, any])[] | undefined;
688
- remarkRehype?: RemarkRehype | undefined;
689
- gfm?: boolean | undefined;
690
- smartypants?: boolean | undefined;
691
- } | undefined;
692
676
  output?: "static" | "server" | "hybrid" | undefined;
693
677
  root?: string | undefined;
694
678
  srcDir?: string | undefined;
695
679
  publicDir?: string | undefined;
696
680
  outDir?: string | undefined;
697
681
  cacheDir?: string | undefined;
682
+ site?: string | undefined;
698
683
  compressHTML?: boolean | undefined;
684
+ base?: string | undefined;
699
685
  trailingSlash?: "never" | "always" | "ignore" | undefined;
700
686
  server?: unknown;
701
687
  scopedStyleStrategy?: "where" | "class" | undefined;
@@ -705,11 +691,11 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: URL)
705
691
  } | undefined;
706
692
  integrations?: unknown;
707
693
  build?: {
708
- assets?: string | undefined;
709
- assetsPrefix?: string | undefined;
710
694
  server?: string | undefined;
711
695
  format?: "file" | "directory" | undefined;
712
696
  client?: string | undefined;
697
+ assets?: string | undefined;
698
+ assetsPrefix?: string | undefined;
713
699
  serverEntry?: string | undefined;
714
700
  } | undefined;
715
701
  image?: {
@@ -718,12 +704,26 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: URL)
718
704
  entrypoint: string;
719
705
  };
720
706
  } | undefined;
707
+ markdown?: {
708
+ drafts?: boolean | undefined;
709
+ syntaxHighlight?: false | "shiki" | "prism" | undefined;
710
+ shikiConfig?: {
711
+ langs?: ILanguageRegistration[] | undefined;
712
+ theme?: string | import("shiki").IShikiTheme | undefined;
713
+ wrap?: boolean | null | undefined;
714
+ } | undefined;
715
+ remarkPlugins?: (string | [string, any] | RemarkPlugin | [RemarkPlugin, any])[] | undefined;
716
+ rehypePlugins?: (string | [string, any] | RehypePlugin | [RehypePlugin, any])[] | undefined;
717
+ remarkRehype?: RemarkRehype | undefined;
718
+ gfm?: boolean | undefined;
719
+ smartypants?: boolean | undefined;
720
+ } | undefined;
721
721
  vite?: ViteUserConfig | undefined;
722
722
  experimental?: {
723
723
  assets?: boolean | undefined;
724
- middleware?: boolean | undefined;
725
724
  customClientDirectives?: boolean | undefined;
726
725
  inlineStylesheets?: "never" | "always" | "auto" | undefined;
726
+ middleware?: boolean | undefined;
727
727
  hybridOutput?: boolean | undefined;
728
728
  } | undefined;
729
729
  legacy?: {} | undefined;
@@ -1,4 +1,4 @@
1
- const ASTRO_VERSION = "2.5.5";
1
+ const ASTRO_VERSION = "2.5.6";
2
2
  const SUPPORTED_MARKDOWN_FILE_EXTENSIONS = [
3
3
  ".markdown",
4
4
  ".mdown",
@@ -53,7 +53,7 @@ async function dev(settings, options) {
53
53
  isRestart: options.isRestart
54
54
  })
55
55
  );
56
- const currentVersion = "2.5.5";
56
+ const currentVersion = "2.5.6";
57
57
  if (currentVersion.includes("-")) {
58
58
  warn(options.logging, null, msg.prerelease({ currentVersion }));
59
59
  }