Loading...
Loading...
Deploy the RAG Starter Kit to any platform that supports Next.js. Here are guides for the most common options.
Zero-config deployment with serverless functions and edge middleware.
{
"functions": {
"src/app/api/chat/route.ts": {
"maxDuration": 60
}
}
}Simple deployment with built-in PostgreSQL and Redis.
npx prisma db push after first deploy to create tables.For self-hosted deployment on any server or cloud provider.
version: "3.8"
services:
app:
build: .
ports:
- "3000:3000"
env_file: .env
depends_on:
- db
- redis
db:
image: pgvector/pgvector:pg16
environment:
POSTGRES_DB: ragkit
POSTGRES_PASSWORD: ${DB_PASSWORD}
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- "5432:5432"
redis:
image: redis:7-alpine
ports:
- "6379:6379"
volumes:
pgdata:docker compose up -d
docker compose exec app npx prisma db pushNODE_ENV=productionNEXTAUTH_SECRET (min 32 chars)ENCRYPTION_MASTER_KEY for field-level encryptionALLOWED_ORIGINS and CSP_CONNECT_SRC for security