diff options
author | 2022-11-14 18:44:37 +0000 | |
---|---|---|
committer | 2022-11-14 18:44:37 +0000 | |
commit | 6ff1399e98ed624842a81dccc1b07eee2d4a5bfb (patch) | |
tree | 8be3c75ab1e3e02861192bf9f6e27008d2efec8f | |
parent | ee750087ce360c54d349f160d84bbdafb0ec83b4 (diff) | |
download | astro-6ff1399e98ed624842a81dccc1b07eee2d4a5bfb.tar.gz astro-6ff1399e98ed624842a81dccc1b07eee2d4a5bfb.tar.zst astro-6ff1399e98ed624842a81dccc1b07eee2d4a5bfb.zip |
[ci] format
Diffstat (limited to '')
-rw-r--r-- | packages/integrations/vercel/src/serverless/adapter.ts | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/packages/integrations/vercel/src/serverless/adapter.ts b/packages/integrations/vercel/src/serverless/adapter.ts index 3fff42f04..61528679c 100644 --- a/packages/integrations/vercel/src/serverless/adapter.ts +++ b/packages/integrations/vercel/src/serverless/adapter.ts @@ -1,10 +1,10 @@ import type { AstroAdapter, AstroConfig, AstroIntegration } from 'astro'; +import glob from 'fast-glob'; +import { pathToFileURL } from 'url'; import { getVercelOutput, removeDir, writeJson } from '../lib/fs.js'; import { copyDependenciesToFunction } from '../lib/nft.js'; import { getRedirects } from '../lib/redirects.js'; -import glob from 'fast-glob'; -import { pathToFileURL } from 'url'; const PACKAGE_NAME = '@astrojs/vercel/serverless'; @@ -70,13 +70,13 @@ export default function vercelServerless({ 'astro:build:done': async ({ routes }) => { // Merge any includes from `vite.assetsInclude const inc = includeFiles?.map((file) => new URL(file, _config.root)) || []; - if(_config.vite.assetsInclude) { + if (_config.vite.assetsInclude) { const mergeGlobbedIncludes = (globPattern: unknown) => { - if(typeof globPattern === 'string') { - const entries = glob.sync(globPattern).map(p => pathToFileURL(p)); + if (typeof globPattern === 'string') { + const entries = glob.sync(globPattern).map((p) => pathToFileURL(p)); inc.push(...entries); - } else if(Array.isArray(globPattern)) { - for(const pattern of globPattern) { + } else if (Array.isArray(globPattern)) { + for (const pattern of globPattern) { mergeGlobbedIncludes(pattern); } } |