mirror of
https://github.com/different-ai/openwork
synced 2026-04-26 01:25:10 +02:00
* fix(den): support legacy org invitation routes Restore the old org-scoped invitation paths and rehydrate sessions to a user's first organization when activeOrg is missing so older clients keep working. Include the shared types workspace in Den Docker images so the local verification stack can still build. * fix(den): proxy legacy org-scoped routes Route legacy '/v1/orgs/:orgId/*' requests into the new unscoped '/v1/*' handlers while preserving the current '/v1/orgs/...' endpoints. Pass the org id through middleware so old clients keep the intended workspace context and add coverage for the generic proxy behavior. * refactor(den): trim invitation route churn Drop the leftover invitation-specific handler extraction now that legacy org-scoped forwarding is handled generically in the org router. Keep the proxy behavior intact while returning the invitation routes closer to their original shape. --------- Co-authored-by: src-opn <src-opn@users.noreply.github.com>
29 lines
936 B
Docker
29 lines
936 B
Docker
FROM node:22-bookworm-slim
|
|
|
|
RUN corepack enable
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml /app/
|
|
COPY .npmrc /app/.npmrc
|
|
COPY patches /app/patches
|
|
COPY packages/types/package.json /app/packages/types/package.json
|
|
COPY ee/packages/utils/package.json /app/ee/packages/utils/package.json
|
|
COPY ee/packages/den-db/package.json /app/ee/packages/den-db/package.json
|
|
COPY ee/apps/den-api/package.json /app/ee/apps/den-api/package.json
|
|
|
|
RUN pnpm install --frozen-lockfile
|
|
|
|
COPY packages/types /app/packages/types
|
|
COPY ee/packages/utils /app/ee/packages/utils
|
|
COPY ee/packages/den-db /app/ee/packages/den-db
|
|
COPY ee/apps/den-api /app/ee/apps/den-api
|
|
|
|
RUN pnpm --dir /app/ee/packages/utils run build
|
|
RUN pnpm --dir /app/ee/packages/den-db run build
|
|
RUN pnpm --dir /app/ee/apps/den-api run build
|
|
|
|
EXPOSE 8788
|
|
|
|
CMD ["sh", "-lc", "yes | pnpm --dir /app/ee/packages/den-db run db:push && node ee/apps/den-api/dist/server.js"]
|