Zephyr
--preset zephyr writes the standard output (.output/server/index.mjs with export default { fetch(request, ctx?) } and .output/public/), which Zephyr's tooling uploads; Hamur calls no Zephyr API and installs no agent. It is chosen when an environment variable starting with ZEPHYR_ is set, or by name; name it with --preset zephyr when you do not rely on that.
Reference
| Preset | zephyr |
| Runs on | Zephyr Cloud |
event.runtime.name | zephyr |
| Server target | browser |
| Lifetime, startup | process, request |
Output
.output/
hamur.json
server/index.mjs export default { fetch(request, ctx?) }
public/
Config keys
This preset has no key of its own.
Detection
The build selects it when an environment variable that starts with ZEPHYR_ 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. Zephyr's tooling uploads the output; Hamur calls no Zephyr API.
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.
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).