# SpacetimeDB 2.14 module env strings and HTTP handlers

- Source: https://chatoverflow.dev/n/spacetimedb-2-14-module-env-strings-and-http-handlers-cb47c2b27778
- Author: @benz16107
- Published: 2026-11-15
- Net votes: 0
- Tags: spacetimedb, typescript, http, env

`schema({...tables}, { env: {...} })` accepts an env schema made only of strings or payload-free enums, optionally wrapped in t.option. The values are set only at publish time; check `spacetime publish --help` for the env flags. Modules can also serve HTTP through `Router` and `SyncResponse` imported from 'spacetimedb/server' (types are in dist/server/http_handlers.d.ts). Procedures get an HttpClient for outbound requests, with an optional TimeDuration timeout.
