mirror of
https://github.com/civitai/civitai.git
synced 2026-09-20 22:08:18 +08:00
5cc887c97c
Convert the civitai-* base packages from eager singletons into app-agnostic factories with their own zod env schemas, and wire them into the main app via thin shims. Packages now import only external deps (+ @civitai/db-schema); the app injects behavior (loggers, Flipt resolver, slow-query sink) and owns HMR globals + the Next build guard. - Phase 0: pnpm-workspace.yaml, per-package package.json + index barrels, @civitai/* tsconfig paths, transpilePackages - axiom/redis/db/clickhouse: createX() factories reading package-owned env.ts (z.prettifyError); Partial<Config> overrides - db: createPrismaClients + config-driven getClient pool factory; kv-helpers.ts breaks the client<->db-helpers cycle; limitConcurrency vendored; pg singletons -> app shims - clickhouse: base client stays; Tracker (auth/session/schema-coupled) extracted to src/server/clickhouse/tracker.ts - telemetry: prom helpers stay; DB pool-gauge block -> src/server/prom/client.ts - prisma generate paths updated for the db-schema package; generated slim schema gitignored Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
128 lines
1.6 KiB
Plaintext
128 lines
1.6 KiB
Plaintext
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
|
|
|
# dependencies
|
|
node_modules
|
|
/.pnp
|
|
.pnp.js
|
|
|
|
# testing
|
|
/coverage
|
|
|
|
# database
|
|
/prisma/db.sqlite
|
|
/prisma/db.sqlite-journal
|
|
|
|
# Generated slim schema - edit schema.full.prisma instead
|
|
prisma/schema.prisma
|
|
packages/civitai-db-schema/prisma/schema.prisma
|
|
|
|
# next.js
|
|
/.next/
|
|
/out/
|
|
|
|
# ladle
|
|
.ladle/stubs/
|
|
|
|
# production
|
|
/build
|
|
|
|
# misc
|
|
.DS_Store
|
|
*.pem
|
|
|
|
# debug
|
|
npm-debug.log*
|
|
yarn-debug.log*
|
|
yarn-error.log*
|
|
.pnpm-debug.log*
|
|
|
|
# local env files
|
|
.env
|
|
.env*
|
|
!.env-example
|
|
!.env.example
|
|
|
|
# vercel
|
|
.vercel
|
|
|
|
# typescript
|
|
*.tsbuildinfo
|
|
|
|
# docker volumes
|
|
/postgres*
|
|
/redis
|
|
/minio
|
|
|
|
# browser automation (local session/profile data)
|
|
.browser/sessions/
|
|
.browser/profiles/
|
|
.browser/storage/
|
|
/clickhouse*
|
|
/undefined
|
|
/.docker
|
|
/prisma_pit
|
|
|
|
# Meilisearch
|
|
/meilisearch
|
|
/data.ms/
|
|
|
|
# WebStorm
|
|
.idea
|
|
*.http
|
|
|
|
# SEO
|
|
/public/sitemap*.xml
|
|
/public/robots.txt
|
|
ca-certificate.crt
|
|
|
|
# IDE
|
|
*~
|
|
|
|
src/pages/api/admin/*.json
|
|
trace/trace.json
|
|
trace/types.json
|
|
|
|
# Local files
|
|
/src/local
|
|
.todo
|
|
/analyze
|
|
|
|
# Playwright
|
|
/test-results/
|
|
/playwright-report/
|
|
/blob-report/
|
|
/playwright/.cache/
|
|
/tests/auth/*.json
|
|
src/pages/api/dev-local/*
|
|
/.playwright-mcp/
|
|
|
|
# Ladle (local dev artifacts)
|
|
.ladle/stubs/
|
|
|
|
# LLM
|
|
/.serena/
|
|
|
|
docs/working/
|
|
docs/incidents/
|
|
.claude/*.local.*
|
|
.claude/skills/cloudflare/.port-tmp-path
|
|
local/
|
|
.eslintcache
|
|
nul
|
|
|
|
scripts/local-dev/
|
|
.direnv
|
|
|
|
# Claude agent temp directories
|
|
tmpclaude-*-cwd
|
|
.claude/skills/flipt/.env
|
|
.claude/skills/freshdesk/.env
|
|
|
|
# Ralph agent
|
|
scripts/ralph/prd.json
|
|
scripts/ralph/progress.txt
|
|
|
|
# Claude temp files
|
|
tmpclaude-*
|
|
/.claude/worktrees
|