Frequently Asked Questions (FAQ)
Does ForgeKit require Node.js runtimes?
No. ForgeKit is engineered to run on Vercel Edge and Cloudflare Workers. It relies on web standard APIs (Fetch, Request, Response, Web Crypto) and database drivers compatible with serverless environments.
How does caching session databases work?
@forgekit/auth sessions check token hashes. To avoid database round-trips on every request, you can configure caching providers (like Redis, Cloudflare KV, or Vercel KV) in the options configuration block:
app.use(
auth({
session: { maxAge: '7d' },
cache: kv({ url: 'redis://...' })
})
); Can I use Prisma with ForgeKit?
Yes, but @forgekit/db is specifically optimized to have negligible cold startup times in serverless environments by utilizing lightweight direct pool transaction wrappers instead of heavy native ORM engines.