- API: `pnpm build` bundles dist/ into apps/api/.output (esbuild), with Linux musl native packages for sharp and argon2 kept alongside - docker/api.Dockerfile copies that output; no pnpm install on the server - add dist/migrate.js (prisma migrate deploy equivalent, same _prisma_migrations table and lock) so the Prisma CLI is not needed at runtime - pnpm-workspace: supportedArchitectures for linux/x64/musl - admin: apps/admin/.env.production sets VITE_SITE_URL for the production build - drop NPM_REGISTRY / SITE_URL build args from compose and .env.example - gitignore: anchor node_modules rules so pre-built node_modules are committed - README: describe the pre-built deploy flow Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
38 lines
529 B
Plaintext
38 lines
529 B
Plaintext
# dependencies (build outputs keep theirs: apps/web/.output/server/node_modules, apps/api/.output/node_modules)
|
|
/node_modules/
|
|
/apps/*/node_modules/
|
|
/packages/*/node_modules/
|
|
|
|
# build output
|
|
# dist/
|
|
# .output/
|
|
.nuxt/
|
|
.data/
|
|
.turbo/
|
|
*.tsbuildinfo
|
|
|
|
# prisma generated client
|
|
apps/api/src/generated/
|
|
|
|
# misc
|
|
.DS_Store
|
|
*.pem
|
|
|
|
# debug
|
|
npm-debug.log*
|
|
pnpm-debug.log*
|
|
|
|
# local env files
|
|
.env
|
|
.env*.local
|
|
!.env.example
|
|
|
|
# database dumps from the backup service
|
|
backups/
|
|
|
|
# local s3 mock storage
|
|
.s3data/
|
|
**/.s3data/
|
|
*.jpg
|
|
icons (1).json
|