What is the `public` directory used for?

Beginner

Answer

The public directory serves static assets directly from the root URL. Files in this directory can be accessed without any path prefix:

public/
  favicon.ico     → /favicon.ico
  logo.png        → /logo.png
  images/
    hero.jpg      → /images/hero.jpg