Skip to content

Commit

Permalink
Prevent Vercel NFT from scanning /dev (#8039)
Browse files Browse the repository at this point in the history
* Prevent Vercel NFT from scanning /dev

* Add a comment
  • Loading branch information
matthewp authored Aug 11, 2023
1 parent 2bdcba2 commit 6b57628
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/fast-penguins-sleep.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/vercel': patch
---

Prevent Vercel NFT from scanning /dev
3 changes: 3 additions & 0 deletions packages/integrations/vercel/src/lib/nft.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 6b57628

Please sign in to comment.