diff options
author | 2024-04-01 10:37:54 -0400 | |
---|---|---|
committer | 2024-04-01 10:37:54 -0400 | |
commit | 31590d44ef8b7c96a757e9b835144d57d767383c (patch) | |
tree | dd77199f23b4c3799b1ae6a708b3eda4ee023edf | |
parent | e31bea0704890ff92ce4f9b0ce536c1c90715f2c (diff) | |
download | astro-31590d44ef8b7c96a757e9b835144d57d767383c.tar.gz astro-31590d44ef8b7c96a757e9b835144d57d767383c.tar.zst astro-31590d44ef8b7c96a757e9b835144d57d767383c.zip |
Move nft warnings behind verbose logging (#10609)
* Move nft warnings behind verbose logging
* Update packages/integrations/vercel/src/lib/nft.ts
Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
* Update packages/integrations/vercel/src/lib/nft.ts
Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
---------
Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
-rw-r--r-- | .changeset/unlucky-shoes-vanish.md | 5 | ||||
-rw-r--r-- | packages/integrations/vercel/src/lib/nft.ts | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/.changeset/unlucky-shoes-vanish.md b/.changeset/unlucky-shoes-vanish.md new file mode 100644 index 000000000..f1ae77749 --- /dev/null +++ b/.changeset/unlucky-shoes-vanish.md @@ -0,0 +1,5 @@ +--- +"@astrojs/vercel": patch +--- + +Move nft warnings behind verbose logging diff --git a/packages/integrations/vercel/src/lib/nft.ts b/packages/integrations/vercel/src/lib/nft.ts index 6daf12558..3b54ae8cc 100644 --- a/packages/integrations/vercel/src/lib/nft.ts +++ b/packages/integrations/vercel/src/lib/nft.ts @@ -53,11 +53,11 @@ export async function copyDependenciesToFunction( if (module === 'sharp') continue; if (entryPath === file) { - console.warn( + logger.debug( `[@astrojs/vercel] The module "${module}" couldn't be resolved. This may not be a problem, but it's worth checking.` ); } else { - console.warn( + logger.debug( `[@astrojs/vercel] The module "${module}" inside the file "${file}" couldn't be resolved. This may not be a problem, but it's worth checking.` ); } |