From 0695361469ecbf03c1064e7c2ff5d086c2edc359 Mon Sep 17 00:00:00 2001 From: alam00000 Date: Sat, 28 Feb 2026 21:59:40 +0530 Subject: [PATCH] feat: add CORS proxy configuration to Dockerfiles --- Dockerfile | 5 +++++ Dockerfile.nonroot | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/Dockerfile b/Dockerfile index af6375d..ffa9898 100644 --- a/Dockerfile +++ b/Dockerfile @@ -47,6 +47,11 @@ ENV VITE_BRAND_NAME=$VITE_BRAND_NAME ENV VITE_BRAND_LOGO=$VITE_BRAND_LOGO ENV VITE_FOOTER_TEXT=$VITE_FOOTER_TEXT +ARG VITE_CORS_PROXY_URL +ARG VITE_CORS_PROXY_SECRET +ENV VITE_CORS_PROXY_URL=$VITE_CORS_PROXY_URL +ENV VITE_CORS_PROXY_SECRET=$VITE_CORS_PROXY_SECRET + ENV NODE_OPTIONS="--max-old-space-size=3072" RUN npm run build:with-docs diff --git a/Dockerfile.nonroot b/Dockerfile.nonroot index 5581595..43ef744 100644 --- a/Dockerfile.nonroot +++ b/Dockerfile.nonroot @@ -44,6 +44,11 @@ ENV VITE_BRAND_NAME=$VITE_BRAND_NAME ENV VITE_BRAND_LOGO=$VITE_BRAND_LOGO ENV VITE_FOOTER_TEXT=$VITE_FOOTER_TEXT +ARG VITE_CORS_PROXY_URL +ARG VITE_CORS_PROXY_SECRET +ENV VITE_CORS_PROXY_URL=$VITE_CORS_PROXY_URL +ENV VITE_CORS_PROXY_SECRET=$VITE_CORS_PROXY_SECRET + ENV NODE_OPTIONS="--max-old-space-size=3072" RUN npm run build:with-docs