Skip to content

Commit

Permalink
Revert "Provide better ignores for Vercel's file tracer (#9885)"
Browse files Browse the repository at this point in the history
This reverts commit 49e0c24.
  • Loading branch information
matthewp committed Feb 2, 2024
1 parent 6c894af commit dd42b41
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 20 deletions.
1 change: 0 additions & 1 deletion packages/integrations/vercel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
"@vercel/nft": "^0.24.3",
"esbuild": "^0.19.6",
"fast-glob": "^3.3.2",
"minimatch": "^9.0.3",
"set-cookie-parser": "^2.6.0",
"web-vitals": "^3.4.0"
},
Expand Down
17 changes: 1 addition & 16 deletions packages/integrations/vercel/src/lib/nft.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@ import type { AstroIntegrationLogger } from 'astro';
import { relative, relative as relativePath } from 'node:path';
import { fileURLToPath } from 'node:url';
import { copyFilesToFunction } from './fs.js';
import { Minimatch } from 'minimatch';

const matchers = [
// Never venture into OS folders
'/dev/**',
// libsql contains many native deps that are false-positives.
'**/@libsql/client/**/*',
].map((pattern) => new Minimatch(pattern, { dot: true }));

export async function copyDependenciesToFunction(
{
Expand Down Expand Up @@ -46,14 +38,7 @@ export async function copyDependenciesToFunction(
base: fileURLToPath(base),
// If you have a route of /dev this appears in source and NFT will try to
// scan your local /dev :8
ignore(path) {
for (const minimatch of matchers) {
if (minimatch.match(path)) {
return true;
}
}
return false;
},
ignore: ['/dev/**'],
cache,
});

Expand Down
3 changes: 0 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit dd42b41

Please sign in to comment.