All static files must be placed in the
/documents/static directory of your project. This is the required location for serving static assets in your document templates.Client-Side Usage
Inside HTML/React components, static files are served directly from the/documents/static directory. Access them using the absolute path:
Server-Side Usage
When reading files server-side (like in document templates), useprocess.env.DOCUMENTS_STATIC_PATH to access files in your static directory:
Example: Local Fonts
Place your font files anywhere in the/static directory and load them using @font-face: