From d5aa930d346d77acbadb1bb8ab1d47f6075c0b96 Mon Sep 17 00:00:00 2001 From: SocioWire Date: Sun, 4 Jan 2026 07:10:36 +0000 Subject: [PATCH] Add source:sociowire for user posts, fix time filter, cross-origin SSO --- Dockerfile | 33 ++++++++++++++++++++ src/auth/AuthContext.jsx | 23 ++++++++++++++ src/components/Filters/TimeFilterButtons.jsx | 2 +- src/components/Map/MapView.jsx | 2 ++ 4 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..be4abde --- /dev/null +++ b/Dockerfile @@ -0,0 +1,33 @@ +FROM node:22-alpine AS build +WORKDIR /app +COPY package*.json ./ +RUN npm ci +COPY . . +ARG VITE_API_BASE_URL= +ARG VITE_KC_URL=/auth +ENV VITE_API_BASE_URL=${VITE_API_BASE_URL} +ENV VITE_KC_URL=${VITE_KC_URL} +RUN npm run build + +FROM nginx:alpine +RUN rm /etc/nginx/conf.d/default.conf +COPY --from=build /app/dist /usr/share/nginx/html +COPY < u.trim()) .filter(Boolean), + // Mark as user-created post so enrichment preserves the position + source: "sociowire", }; if (draftUrl.trim()) {