fix:deploy

This commit is contained in:
2026-03-10 01:15:09 +09:00
parent 22c8d2bc4d
commit 1b202deb8a
3 changed files with 3 additions and 5 deletions

View File

@@ -6,6 +6,7 @@ COPY package.json ./
COPY drizzle.config.ts ./ COPY drizzle.config.ts ./
COPY drizzle/ ./drizzle/ COPY drizzle/ ./drizzle/
COPY src/ ./src/ COPY src/ ./src/
COPY .env ./
RUN bun install --frozen-lockfile RUN bun install --frozen-lockfile

View File

@@ -8,10 +8,7 @@ COPY tsconfig*.json ./
COPY vite.config.ts ./ COPY vite.config.ts ./
COPY src/ ./src/ COPY src/ ./src/
COPY public/ ./public/ COPY public/ ./public/
COPY .env ./
# 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
RUN bun install --frozen-lockfile RUN bun install --frozen-lockfile
RUN bun run build RUN bun run build

View File

@@ -63,7 +63,7 @@ function SupportApp() {
export default function App() { export default function App() {
return ( return (
<BrowserRouter basename="/projects/support-ticket-demo"> <BrowserRouter>
<Routes> <Routes>
<Route path="/" element={<SupportApp />} /> <Route path="/" element={<SupportApp />} />
<Route path="*" element={<NotFound />} /> <Route path="*" element={<NotFound />} />