mirror of
https://github.com/different-ai/openwork
synced 2026-04-25 17:15:34 +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>
27 lines
768 B
Docker
27 lines
768 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 packages/ui/package.json /app/packages/ui/package.json
|
|
COPY ee/packages/utils/package.json /app/ee/packages/utils/package.json
|
|
COPY ee/apps/den-web/package.json /app/ee/apps/den-web/package.json
|
|
|
|
RUN pnpm install --frozen-lockfile --filter @openwork-ee/den-web...
|
|
|
|
COPY packages/types /app/packages/types
|
|
COPY packages/ui /app/packages/ui
|
|
COPY ee/packages/utils /app/ee/packages/utils
|
|
COPY ee/apps/den-web /app/ee/apps/den-web
|
|
|
|
WORKDIR /app/ee/apps/den-web
|
|
|
|
EXPOSE 3005
|
|
|
|
CMD ["sh", "-lc", "pnpm run build && pnpm run start"]
|