From 7749ea7d3a60f45e8b27a323befd7491c8756e1b Mon Sep 17 00:00:00 2001 From: spexzee Date: Sat, 27 Dec 2025 17:49:52 +0530 Subject: [PATCH 1/2] manually failed build --- src/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.tsx b/src/App.tsx index ac4efab..eeb80e2 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -3,7 +3,7 @@ import { BrowserRouter } from "react-router-dom"; import { About, Contact, Hero, Navbar, Tech, Works, StarsCanvas, Experience, ErrorBoundary, ErrorTestButton } from "./components"; import Footer from "./components/Footer"; -import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; +// import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; const queryClient = new QueryClient() From 47f9aa1b0ac9566b15cce2a123f1a06a7211500d Mon Sep 17 00:00:00 2001 From: spexzee Date: Sat, 27 Dec 2025 17:55:46 +0530 Subject: [PATCH 2/2] updated docker file --- Dockerfile | 6 +++++- src/App.tsx | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index ae0e643..cc6018e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,10 +3,14 @@ FROM node:18-alpine WORKDIR /app COPY package*.json ./ -RUN npm install +RUN npm ci COPY . . +# This will fail the Docker build if there are TypeScript/build errors RUN npm run build +# Verify that the build directory exists +RUN test -d dist || (echo "Build failed - dist directory not found" && exit 1) + CMD ["sh", "-c", "echo Build completed successfully"] diff --git a/src/App.tsx b/src/App.tsx index eeb80e2..ac4efab 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -3,7 +3,7 @@ import { BrowserRouter } from "react-router-dom"; import { About, Contact, Hero, Navbar, Tech, Works, StarsCanvas, Experience, ErrorBoundary, ErrorTestButton } from "./components"; import Footer from "./components/Footer"; -// import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; +import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; const queryClient = new QueryClient()