Prevent Vercel NFT from scanning /dev (#8039)

* Prevent Vercel NFT from scanning /dev

* Add a comment
This commit is contained in:
Matthew Phillips 2023-08-11 09:58:32 -04:00 committed by GitHub
parent 2bdcba2aa7
commit 6b57628d12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
'@astrojs/vercel': patch
---
Prevent Vercel NFT from scanning /dev

View file

@ -28,6 +28,9 @@ export async function copyDependenciesToFunction({
const { nodeFileTrace } = await import('@vercel/nft');
const result = await nodeFileTrace([entryPath], {
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: ['/dev/**']
});
for (const error of result.warnings) {