The /static/ directory is used to contain files that you don't want to be compiled by webpack or cannot be compiled, such as favicon files. If you don't want to serve your assets, such as images, fonts, and styles, in the /assets/ directory, you can keep them in the /static/ directory instead. All files in this directory are mapped to the server root directly, so they are accessible under the root URL directly. For example, /static/1.jpg is mapped as /1.jpg, so you can access it as follows:
http://localhost:3000/1.jpg
We will discuss the difference in serving images between the /assets/ and /static/ directories later in this chapter. Note that you get a favicon.ico file by default in this directory when you use the Nuxt scaffolding tool, but you can create your favicon file to replace it.