fix: remove tsc -b from Dockerfile, let Vite handle TS compilation
Some checks failed
Build & Deploy / build-and-deploy (push) Failing after 14s

Vite uses esbuild for TypeScript and resolves the @/ path alias via
vite.config.ts. Standalone tsc cannot resolve @/ without baseUrl/paths
which are deprecated in TS7. Dropping tsc from the build is the clean fix.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
ordinarthur 2026-04-12 12:03:25 +02:00
parent 8107dab15e
commit 3a719c5aea

View File

@ -5,7 +5,7 @@ RUN npm ci
COPY . . COPY . .
ARG VITE_SUPABASE_URL ARG VITE_SUPABASE_URL
ARG VITE_SUPABASE_ANON_KEY ARG VITE_SUPABASE_ANON_KEY
RUN ./node_modules/.bin/tsc -b && ./node_modules/.bin/vite build RUN ./node_modules/.bin/vite build
FROM nginx:alpine FROM nginx:alpine
COPY --from=build /app/dist /usr/share/nginx/html COPY --from=build /app/dist /usr/share/nginx/html