summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Matthew Phillips <matthew@skypack.dev> 2024-04-01 10:37:54 -0400
committerGravatar GitHub <noreply@github.com> 2024-04-01 10:37:54 -0400
commit31590d44ef8b7c96a757e9b835144d57d767383c (patch)
treedd77199f23b4c3799b1ae6a708b3eda4ee023edf
parente31bea0704890ff92ce4f9b0ce536c1c90715f2c (diff)
downloadastro-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.md5
-rw-r--r--packages/integrations/vercel/src/lib/nft.ts4
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.`
);
}