I see the issue - the sharp package is being blocked by pnpm. Since we're using external Unsplash images with remotePatterns in Next.js, we don't need sharp for image optimization. Let me fix this:
Good news - the package.json doesn't have sharp as a dependency. The warning is likely coming from a transitive dependency. Let me create a .npmrc file to handle this and suppress the warning for Vercel builds:
Now let me also create a .vercelignore file to ensure proper deployment:
I've created two configuration files to fix the Vercel deployment issue:
.npmrc - Configures pnpm to use hoisted node_linker mode (standard for monorepos/Vercel), enabling auto peer installation, and sets the correct shell for build scripts..vercelignore - Tells Vercel which files to ignore during deployment, reducing build time and avoiding unnecessary files.These configurations should resolve the sharp warning and allow Vercel to properly detect and build your Next.js framework. Try redeploying now.
I pulled the latest changes from v0/rsreehari-a821ab60 in v0-nasa-vo.