Files
captable/hanzo.yml
T
zeekay a802f619cd Serve every route under /v1
next-auth moves to /v1/iam, tRPC to /v1/trpc and the Hono REST API to
/v1/companies, /v1/schema, /v1/swagger and /v1/docs. HIP-0111: no /api/
prefix. The /api copies of the REST handler and docs page, and the empty
apiKeys handler, are deleted.

next-auth v4 takes its server mount from the path of NEXTAUTH_URL, so
env.js refuses anything but <origin>/v1/iam; SessionProvider takes the
same AUTH_BASE_PATH. src/routes.test.ts fails if src/app/api returns or
any source names an /api/ path, and hanzo.yml runs it before the image.

Claude-Session: https://claude.ai/code/session_01TUxvfuta1Z44KVNYuAz71F
2026-09-24 15:05:00 -07:00

23 lines
774 B
YAML

# Next.js + Prisma cap-table app. docker/Dockerfile installs with
# `pnpm i --frozen-lockfile` and runs `next build`, so a lockfile that disagrees
# with package.json, or a build that fails, publishes no image.
test:
# src/: every route is /v1 and no /api/ path is served or called
# (src/routes.test.ts), plus the unit suites. goja/test/*.mjs are node
# scripts, not vitest suites, so the run is scoped to src/.
- name: unit
run: |
set -e
corepack enable
pnpm install --frozen-lockfile --ignore-scripts
pnpm exec vitest run src/
images:
- name: captable
context: .
dockerfile: docker/Dockerfile
repo: ghcr.io/hanzoai/captable
# The Dockerfile's base stage is FROM --platform=linux/amd64.
platforms: [linux/amd64]