Error on just one page "ENOENT: no file or directory, open"

Hello, I’m having difficulty accessing the image, it says ENOENT error.

I already tried with

process.cwd(), “public/imagens/photo.jpg”

and the error still comes back

code

  const buffer = await fs.readFile(`./public/imagens/example.jpg`);
  const { base64 } = await getPlaiceholder(buffer);

App: https://astral.photos/servicos/indaiatuba

And it was working on the first deploy

@Astral I’m not sure what you’re doing, but I presume you’re running this in a Serverless Function?

If so, you may need to use included_files so the image is deployed with the function.

See: https://docs.netlify.com/functions/optional-configuration/#bundle

Thank you very much Nathan, It worked :slight_smile:

[functions]
included_files = ["public/imagens/**/*.jpg"]