fix:deploy
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -63,7 +63,7 @@ function SupportApp() {
|
||||
|
||||
export default function App() {
|
||||
return (
|
||||
<BrowserRouter basename="/projects/support-ticket-demo">
|
||||
<BrowserRouter>
|
||||
<Routes>
|
||||
<Route path="/" element={<SupportApp />} />
|
||||
<Route path="*" element={<NotFound />} />
|
||||
|
||||
Reference in New Issue
Block a user