aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.changeset/gold-ways-attend.md5
-rw-r--r--packages/integrations/vercel/package.json1
-rw-r--r--packages/integrations/vercel/src/lib/nft.ts17
-rw-r--r--pnpm-lock.yaml3
4 files changed, 6 insertions, 20 deletions
diff --git a/.changeset/gold-ways-attend.md b/.changeset/gold-ways-attend.md
new file mode 100644
index 000000000..d5b367083
--- /dev/null
+++ b/.changeset/gold-ways-attend.md
@@ -0,0 +1,5 @@
+---
+"@astrojs/vercel": patch
+---
+
+Fix regression with bundling of @libsql/client
diff --git a/packages/integrations/vercel/package.json b/packages/integrations/vercel/package.json
index c42cd3173..3e460375e 100644
--- a/packages/integrations/vercel/package.json
+++ b/packages/integrations/vercel/package.json
@@ -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"
},
diff --git a/packages/integrations/vercel/src/lib/nft.ts b/packages/integrations/vercel/src/lib/nft.ts
index f4ffdd2e6..585a45e99 100644
--- a/packages/integrations/vercel/src/lib/nft.ts
+++ b/packages/integrations/vercel/src/lib/nft.ts
@@ -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(
{
@@ -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,
});
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 6139f400c..ef04d4425 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -4708,9 +4708,6 @@ importers:
fast-glob:
specifier: ^3.3.2
version: 3.3.2
- minimatch:
- specifier: ^9.0.3
- version: 9.0.3
set-cookie-parser:
specifier: ^2.6.0
version: 2.6.0