Fix: Copy shared/ inside project dir for Turbopack + add symlinks for dev
Turbopack only resolves tsconfig paths within the project root. Changed @shared/* from ../shared/* to ./shared/* in all tsconfigs. Docker copies shared/ into the project dir at build time. Local dev uses symlinks (gitignored). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -9,9 +9,9 @@ COPY admin-lehrer/package.json admin-lehrer/package-lock.json* ./
|
||||
# Install dependencies
|
||||
RUN npm install
|
||||
|
||||
# Copy source code + shared types (../shared/ relative to /app)
|
||||
# Copy source code + shared types (inside project for Turbopack)
|
||||
COPY admin-lehrer/ .
|
||||
COPY shared/ ../shared/
|
||||
COPY shared/ ./shared/
|
||||
|
||||
# Build arguments for environment variables
|
||||
ARG NEXT_PUBLIC_API_URL
|
||||
|
||||
Reference in New Issue
Block a user