fix: generate route tree in CI and Docker build
Ensures routeTree.gen.ts is always fresh so stale checked-in copies don't break the frontend build or lint. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -21,6 +21,10 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: bun install --frozen-lockfile
|
||||
|
||||
- name: Generate route tree
|
||||
working-directory: packages/admin
|
||||
run: bunx @tanstack/router-cli generate
|
||||
|
||||
- name: Lint
|
||||
run: bun run lint
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@ COPY packages/admin ./packages/admin
|
||||
COPY package.json ./
|
||||
COPY tsconfig.base.json ./
|
||||
WORKDIR /app/packages/admin
|
||||
RUN bunx @tanstack/router-cli generate
|
||||
RUN bun run build
|
||||
|
||||
FROM nginx:alpine
|
||||
|
||||
Reference in New Issue
Block a user