Skip to main content
open-pdf.config.ts sits at the workspace root and default-exports an OpenPdfConfig. The scaffolded file is empty, and every field is optional. A missing file means all defaults.
open-pdf.config.ts
The file is loaded with Vite’s config loader, so it can be TypeScript and use imports. dev, build, preview, and export all read it. It is loaded once at startup, so restart the dev server after changing it.
The agent guide scaffolded by init tells agents not to modify this file. Config changes are yours to make.

Fields

build

build controls which UI features ship in the built static site. All three default to true.

Example

A workspace served under a subpath, on a fixed port, building a viewer-only site:
open-pdf.config.ts