Skip to content

Commit

Permalink
Move nft warnings behind verbose logging (#10609)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
matthewp and lilnasy authored Apr 1, 2024
1 parent e31bea0 commit 31590d4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/unlucky-shoes-vanish.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@astrojs/vercel": patch
---

Move nft warnings behind verbose logging
4 changes: 2 additions & 2 deletions packages/integrations/vercel/src/lib/nft.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.`
);
}
Expand Down

0 comments on commit 31590d4

Please sign in to comment.