Prevent Vercel NFT from scanning /dev (#8039)
* Prevent Vercel NFT from scanning /dev * Add a comment
This commit is contained in:
parent
2bdcba2aa7
commit
6b57628d12
2 changed files with 8 additions and 0 deletions
5
.changeset/fast-penguins-sleep.md
Normal file
5
.changeset/fast-penguins-sleep.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'@astrojs/vercel': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Prevent Vercel NFT from scanning /dev
|
|
@ -28,6 +28,9 @@ export async function copyDependenciesToFunction({
|
||||||
const { nodeFileTrace } = await import('@vercel/nft');
|
const { nodeFileTrace } = await import('@vercel/nft');
|
||||||
const result = await nodeFileTrace([entryPath], {
|
const result = await nodeFileTrace([entryPath], {
|
||||||
base: fileURLToPath(base),
|
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) {
|
for (const error of result.warnings) {
|
||||||
|
|
Loading…
Reference in a new issue