diff --git a/packages/astro/src/core/config/schema.ts b/packages/astro/src/core/config/schema.ts index 7d7cf474ba..c27dc68244 100644 --- a/packages/astro/src/core/config/schema.ts +++ b/packages/astro/src/core/config/schema.ts @@ -321,7 +321,9 @@ export const AstroConfigSchema = z.object({ .or(z.custom()) ) .default(ASTRO_CONFIG_DEFAULTS.markdown.shikiConfig.themes!), - defaultColor: z.union([z.literal('light'), z.literal('dark'), z.string(), z.literal(false)]).optional(), + defaultColor: z + .union([z.literal('light'), z.literal('dark'), z.string(), z.literal(false)]) + .optional(), wrap: z.boolean().or(z.null()).default(ASTRO_CONFIG_DEFAULTS.markdown.shikiConfig.wrap!), transformers: z .custom() diff --git a/packages/astro/src/core/render/paginate.ts b/packages/astro/src/core/render/paginate.ts index ab6654e5c6..591d739c5b 100644 --- a/packages/astro/src/core/render/paginate.ts +++ b/packages/astro/src/core/render/paginate.ts @@ -62,13 +62,13 @@ export function generatePaginateFunction( : correctIndexRoute( routeMatch.generate({ ...params, - page: includesFirstPageNumber? "1": undefined, + page: includesFirstPageNumber ? '1' : undefined, }) - ); + ); const last = - pageNum === lastPage + pageNum === lastPage ? undefined - : correctIndexRoute(routeMatch.generate({ ...params, page: String(lastPage)})); + : correctIndexRoute(routeMatch.generate({ ...params, page: String(lastPage) })); return { params, props: {