- Set DENO_DIR=/app/.deno_cache to persist module cache - Pre-cache common dependencies (zod-to-json-schema, ai, zod) during build - Add Railway volume configuration for /app/.deno_cache - Improve logging to show cache hits vs network downloads - Add --allow-read and --allow-write permissions for cache access This dramatically reduces tool loading time after the first import. Dependencies are downloaded once and reused across all subsequent requests. Example: ctx-zip with 200+ dependencies will only download once instead of on every chat request. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
14 lines
379 B
TOML
14 lines
379 B
TOML
[build]
|
|
builder = "dockerfile"
|
|
dockerfilePath = "Dockerfile"
|
|
|
|
[deploy]
|
|
startCommand = "deno run --allow-net --allow-env --allow-read --allow-write server.ts"
|
|
restartPolicyType = "on_failure"
|
|
restartPolicyMaxRetries = 10
|
|
|
|
# Mount persistent volume for Deno cache
|
|
# This persists the cache across deploys and restarts
|
|
[[volumes]]
|
|
mountPath = "/app/.deno_cache"
|
|
name = "deno-cache"
|