fix: remove tsc -b from Dockerfile, let Vite handle TS compilation
Some checks failed
Build & Deploy / build-and-deploy (push) Failing after 14s
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:
parent
8107dab15e
commit
3a719c5aea
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user