Next.js can be used to serve static files - images, html and more, using the public directory. In this quick lesson we're going to learn how to use public directory in order to serve images and a error.html file.
public
error.html