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


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


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.


Thank you very much Nathan, It worked :slight_smile:

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