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 studio-v2/package.json studio-v2/package-lock.json* ./
|
||||
# Install dependencies
|
||||
RUN npm install
|
||||
|
||||
# Copy source files + shared types (../shared/ relative to /app)
|
||||
# Copy source files + shared types (inside project for Turbopack)
|
||||
COPY studio-v2/ .
|
||||
COPY shared/ ../shared/
|
||||
COPY shared/ ./shared/
|
||||
|
||||
# Build arguments for environment variables (needed at build time for Next.js)
|
||||
ARG NEXT_PUBLIC_VOICE_SERVICE_URL
|
||||
|
||||
Reference in New Issue
Block a user