site: https://katohgumi.netlify.app/
netlify.toml :
[[plugins]]
package = “@netlify/plugin-nextjs”
[functions]
external_node_modules = [“sharp”]
included_files = [“node_modules/sharp/**/*”]
[build]
command = “npm run build”
publish = “.next”
images with tag < img > show up but next < Image > dont show up.
error : IPX Error: Error: \nSomething went wrong installing the "sharp" module\n\nCannot find module ‘…/build/Release/sharp-linux-x64.node’\nRequire stack:\n- /var/task/node_modules/ipx/node_modules/sharp/lib/sharp.js\n- /var/task/node_modules/ipx/node_modules/sharp/lib/constructor.js\n- /var/task/node_modules/ipx/node_modules/sharp/lib/index.js\n\nPossible solutions:\n- Install with verbose logging and look for errors: "npm install --ignore-scripts=false --foreground-scripts --verbose sharp"\n- Install for the current linux-x64 runtime: "npm install --platform=linux --arch=x64 sharp"\n- Consult the installation documentation: sharp - High performance Node.js image processing