Compare commits
2 Commits
95b43dceec
...
eca244f9d4
| Author | SHA1 | Date | |
|---|---|---|---|
| eca244f9d4 | |||
| fbedcec4f2 |
+1
-1
@@ -16,7 +16,7 @@ COPY --from=deps /app/packages/shared/node_modules ./packages/shared/node_module
|
||||
COPY --from=deps /app/packages/game-engine/node_modules ./packages/game-engine/node_modules
|
||||
COPY --from=deps /app/apps/web/node_modules ./apps/web/node_modules
|
||||
COPY . .
|
||||
ARG VITE_API_URL=/api
|
||||
ARG VITE_API_URL=
|
||||
ENV VITE_API_URL=$VITE_API_URL
|
||||
RUN pnpm --filter @ai-tycoon/shared build && \
|
||||
pnpm --filter @ai-tycoon/game-engine build && \
|
||||
|
||||
@@ -112,7 +112,7 @@ export function validateStoredToken(): void {
|
||||
}
|
||||
|
||||
export const api = {
|
||||
health: () => request<{ status: string }>('/health', { timeoutMs: 5_000 }),
|
||||
health: () => request<{ status: string }>('/api/health', { timeoutMs: 5_000 }),
|
||||
auth: {
|
||||
anonymous: () => request<{ userId: string; token: string }>('/api/auth/anonymous', { method: 'POST' }),
|
||||
login: (login: string, password: string) =>
|
||||
|
||||
Reference in New Issue
Block a user