Public Directory
The public/ directory is directly served at the server root and contains public files that have to keep their names (e.g. robots.txt) or likely won’t change (e.g. favicon.ico).
This is known as the static/ directory in Nuxt 2.
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
The public/ directory is directly served at the server root and contains public files that have to keep their names (e.g. robots.txt) or likely won’t change (e.g. favicon.ico).
This is known as the static/ directory in Nuxt 2.