File conventions
Public assets
Files in the project-root public directory are served by URL, with no public prefix. For a deployment under a subpath, separately verify asset URLs. Do not expose private content or assume immutable cache headers. The example assumes no basePath and an existing local image. Source: https://nextjs.org/docs/app/api-reference/file-conventions/public-folder. Documentation-reviewed illustrative draft; installed declarations and runtime not verified.
Formal Syntax & Structure
nextjs syntaxnextjs
public/<path>Working Example
Example Snippetnextjs
<img src="/covers/moss.png" alt="Green book cover" />