Fix: Revert to inline shared types (Turbopack can't resolve path aliases)
Some checks failed
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / test-go-school (push) Successful in 40s
CI / test-go-edu-search (push) Successful in 30s
CI / test-python-klausur (push) Failing after 2m56s
CI / test-python-agent-core (push) Successful in 19s
CI / test-nodejs-website (push) Successful in 25s

Turbopack doesn't support tsconfig path aliases pointing outside
the project root. Reverted to copying shared types directly into
each service. The canonical source remains shared/types/*.ts,
synced via scripts/sync-shared-types.sh.

Changes:
- Reverted docker-compose.yml contexts to ./service
- Reverted Dockerfiles to simple COPY . .
- Removed @shared/* from tsconfigs
- Removed symlinks + .gitignore hacks
- Added scripts/sync-shared-types.sh for keeping copies in sync

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Benjamin Admin
2026-04-25 17:13:18 +02:00
parent 2eb17fd349
commit b49ee3467e
24 changed files with 3127 additions and 47 deletions

View File

@@ -4,14 +4,13 @@ FROM node:20-alpine AS builder
WORKDIR /app
# Copy package files
COPY website/package.json website/package-lock.json* ./
COPY package.json package-lock.json* ./
# Install dependencies
RUN npm install
# Copy source code + shared types (inside project for Turbopack)
COPY website/ .
COPY shared/ ./shared/
# Copy source code
COPY . .
# Build arguments for environment variables
ARG NEXT_PUBLIC_BILLING_API_URL