fix: Improve condo ID handling and add error message
Prevents client-side generation of condo IDs, delegating this to the backend/service for consistency. Introduces an alert for save condo errors and ensures the active condo is correctly updated or set. Adds logic to auto-select the first condo if none is active.
This commit is contained in:
15
Dockerfile
15
Dockerfile
@@ -1,15 +0,0 @@
|
||||
# Stage 1: Build del frontend
|
||||
FROM node:20-alpine as build
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
# Stage 2: Serve con Nginx
|
||||
FROM nginx:alpine
|
||||
COPY --from=build /app/dist /usr/share/nginx/html
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
EXPOSE 80
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user