Server
@dex/server (Agent)
Exports
dexAssetsRoute({ assetsDir, cacheControlProd?, cacheControlDev? })dexSpaFallback({ indexHtmlPath })dexDevReloadRouter({ watchFiles?, pollIntervalMs? })dexPrettyLogger({ ignore?, includeQuery? })
Key behavior
dexSpaFallbackskips/api/*,/assets/*,/__dev/*, and paths containing..dexPrettyLoggeris a function-plugin (attaches hooks to parent app) and logs ononAfterResponse.
Starter prod server
- Entry:
templates/starter/core/runtime/server/prod.ts - Build:
bun build --compile core/runtime/server/prod.ts --outfile build/server - API-only:
DEX_API_ONLY=1