feat: Implement Docker build and serving setup
Adds Dockerfile for frontend and backend, along with Nginx configuration and .dockerignore files. This enables containerized deployment and proper handling of static assets and API proxying. Updates mockDb.ts to correctly type ticket attachments.
This commit is contained in:
@@ -297,7 +297,7 @@ export const CondoService = {
|
||||
return request<Ticket[]>(url);
|
||||
},
|
||||
|
||||
createTicket: async (data: Partial<Ticket> & { attachments?: { fileName: string, fileType: string, data: string }[] }) => {
|
||||
createTicket: async (data: Omit<Partial<Ticket>, 'attachments'> & { attachments?: { fileName: string, fileType: string, data: string }[] }) => {
|
||||
const activeId = CondoService.getActiveCondoId();
|
||||
if(!activeId) throw new Error("No active condo");
|
||||
return request('/tickets', {
|
||||
@@ -325,4 +325,4 @@ export const CondoService = {
|
||||
seedPayments: () => {
|
||||
// No-op in remote mode
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user