Zeabur, static
--preset zeabur-static (with hamur generate --preset zeabur-static) prerenders every route and writes static/ and config.json without a function. Deploy .zeabur/output/ as Zeabur's serverless output format describes; rateLimit counts per instance unless storage.ratelimit is on a shared driver.
Reference
| Preset | zeabur-static |
| Runs on | Zeabur, static |
event.runtime.name | static |
| Server target | bun |
| Lifetime, startup | process, load |
Output
.zeabur/output/
config.json
static/
Config keys
This preset has no key of its own.
Detection
None. hamur generate picks it when the build selects zeabur (ZEABUR is set); --preset zeabur-static names it.
Deploy command
No hamur deploy command: it exits 1 for this preset. The preview command of the preset, which hamur preview runs or prints, is npx serve .zeabur/output/static.
Limits
- Does not run: WebSockets and
server.syncedState,server.pubsub, streamed answers,server.metrics, image transforms at run time, privateapp/env.tsentries read at run time, Durable Object classes.
The levels are the features of the preset: hamur build warns or fails when the app uses a feature the preset does not run (see Preset features).