diff --git a/backend/Dockerfile b/backend/Dockerfile index 22cddce..851bc5f 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -6,6 +6,7 @@ COPY package.json ./ COPY drizzle.config.ts ./ COPY drizzle/ ./drizzle/ COPY src/ ./src/ +COPY .env ./ RUN bun install --frozen-lockfile diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 28a367a..7bd123d 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -8,10 +8,7 @@ COPY tsconfig*.json ./ COPY vite.config.ts ./ COPY src/ ./src/ COPY public/ ./public/ - -# VITE_API_URL must be set at build time — Vite bakes it into the bundle -ARG VITE_API_URL -ENV VITE_API_URL=$VITE_API_URL +COPY .env ./ RUN bun install --frozen-lockfile RUN bun run build diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 62842ba..b182aef 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -63,7 +63,7 @@ function SupportApp() { export default function App() { return ( - + } /> } />