@towerjs/edge
v0.1.1
Published
Edge runtime integration for Tower — resolves tower.config.ts in constrained environments like Vercel Edge Runtime
Readme
@towerjs/edge
Edge runtime integration for Tower. Resolves tower.config.ts in constrained environments like Vercel Edge Runtime where filesystem access is unavailable.
Installation
pnpm add @towerjs/edgeUsage
// next.config.ts
import { withTowerEdge } from '@towerjs/edge'
export default withTowerEdge({})withTowerEdge bundles your tower.config.ts via webpack/Turbopack aliases so Tower can discover it at runtime in Edge Functions, Middleware, and other serverless environments.
Runtime notes
Gatehouse (auth) currently requires a Node.js-compatible runtime and does not work in Vercel Edge or Cloudflare Workers. Vault with Neon and Courier with HTTP providers work in edge runtimes. Edge support for Gatehouse is planned for v0.2.0.
Included in
- @towerjs/tower — meta-package
