From 6599b93f0d80547eaada84b15cbd67dd9fcd0783 Mon Sep 17 00:00:00 2001 From: Jacob Lamb Date: Wed, 3 Apr 2024 06:04:18 +0000 Subject: [PATCH] [ci] format --- .../vercel/src/serverless/adapter.ts | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/packages/integrations/vercel/src/serverless/adapter.ts b/packages/integrations/vercel/src/serverless/adapter.ts index 4aa7a5a995..185d3df465 100644 --- a/packages/integrations/vercel/src/serverless/adapter.ts +++ b/packages/integrations/vercel/src/serverless/adapter.ts @@ -59,9 +59,12 @@ const ISR_PATH = `/_isr?${ASTRO_PATH_PARAM}=$0`; // https://vercel.com/docs/concepts/functions/serverless-functions/runtimes/node-js#node.js-version const SUPPORTED_NODE_VERSIONS: Record< string, - { status: 'default' } | { status: 'beta' } | { status: 'retiring'; removal: Date | string; warnDate: Date } | { status: 'deprecated'; removal: Date } + | { status: 'default' } + | { status: 'beta' } + | { status: 'retiring'; removal: Date | string; warnDate: Date } + | { status: 'deprecated'; removal: Date } > = { - 18: { status: 'retiring', removal: "Early 2025", warnDate: new Date('October 1 2024') }, + 18: { status: 'retiring', removal: 'Early 2025', warnDate: new Date('October 1 2024') }, 20: { status: 'default' }, }; @@ -525,12 +528,12 @@ function getRuntime(process: NodeJS.Process, logger: AstroIntegrationLogger): Ru return `nodejs${major}.x`; } if (support.status === 'retiring') { - if (support.warnDate && new Date() >= support.warnDate) { - logger.warn( - `Your project is being built for Node.js ${major} as the runtime, which is retiring by ${support.removal}.` - ); - } - return `nodejs${major}.x`; + if (support.warnDate && new Date() >= support.warnDate) { + logger.warn( + `Your project is being built for Node.js ${major} as the runtime, which is retiring by ${support.removal}.` + ); + } + return `nodejs${major}.x`; } if (support.status === 'beta') { logger.warn(