mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
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>
This commit is contained in:
parent
e31bea0704
commit
31590d44ef
2 changed files with 7 additions and 2 deletions
5
.changeset/unlucky-shoes-vanish.md
Normal file
5
.changeset/unlucky-shoes-vanish.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
"@astrojs/vercel": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Move nft warnings behind verbose logging
|
|
@ -53,11 +53,11 @@ export async function copyDependenciesToFunction(
|
||||||
if (module === 'sharp') continue;
|
if (module === 'sharp') continue;
|
||||||
|
|
||||||
if (entryPath === file) {
|
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.`
|
`[@astrojs/vercel] The module "${module}" couldn't be resolved. This may not be a problem, but it's worth checking.`
|
||||||
);
|
);
|
||||||
} else {
|
} 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.`
|
`[@astrojs/vercel] The module "${module}" inside the file "${file}" couldn't be resolved. This may not be a problem, but it's worth checking.`
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue