Zeabur
--preset zeabur writes .zeabur/output/. It is chosen when ZEABUR is set, or by name.
Reference
| Preset | zeabur |
| Runs on | Zeabur |
event.runtime.name | zeabur |
| Server target | node |
| Lifetime, startup | request, request |
Output
.zeabur/output/
config.json
static/ the public files and /_hamur/
functions/__hamur.func/
index.mjs
package.json
Config keys
This preset has no key of its own.
Detection
The build selects it when ZEABUR is set, unless --preset, preset or HAMUR_PRESET names another. It is a row of the one table of markers in Choosing a preset.
Deploy command
No hamur deploy command: it exits 1 for this preset. Deploy .zeabur/output/ as Zeabur's serverless output format describes.
Limits
- Experimental: streamed answers, private
app/env.tsentries read at run time. - Does not run: WebSockets and
server.syncedState,server.pubsub,server.metrics, image transforms at run time, Durable Object classes. rateLimitcounts per instance unlessstorage.ratelimitis on a shared driver.
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).
.zeabur/output/
config.json { "containerized": false, "routes": [{ "src": ".*", "dest": "/__hamur" }] }
static/ the public files and /_hamur/
functions/__hamur.func/
index.mjs export default (req, res) => ...
package.json "type": "module"