open-frame build
Produce a static, deployable build.
open-frame build
# or
npm run buildBuilds every deck under frames/ into a self-contained static site at
dist/. The output has no server requirement — drop it on any static host.
Flags
| Flag | Default | Description |
|---|---|---|
--out-dir <dir> | dist | Write the static build to a custom folder. |
Output
dist/
├── index.html
├── assets/
│ └── ...hashed files...
└── ...Trimming the public surface
If the build is for a public share rather than internal review, you can hide
the frame browser and on-canvas UI in open-frame.config.ts:
const config: OpenFrameConfig = {
build: {
showFrameBrowser: false,
showFrameUi: false,
allowHtmlDownload: false,
},
};See Export for the full set of build knobs.
Deploying under a subpath
If the build won't sit at the domain root (GitHub Pages project sites,
a reverse-proxy folder, an intranet path), set base in
open-frame.config.ts so asset URLs and client-side navigation resolve
against the deployed path:
const config: OpenFrameConfig = {
base: '/my-frames/',
};See Config for details.