LogoRevali

Public Files

The directory used to store static files

The public directory is a special directory used to store static files that are directly served by the server. Any file placed in this directory is accessible by anyone, making it ideal for assets like images, icons, and other public resources.

Usage#

The public directory is automatically mapped to the server's root, even if you have defined an application prefix

Example#

public/
    favicon.ico
    robots.txt
    images/
        logo.png

If you're running Revali locally, the favicon.ico and other files in the public directory are accessible via URLs like:

http://localhost:3000/favicon.ico
http://localhost:3000/images/logo.png