Skip to content

Commit e410de0

Browse files
committed
fix(#2192): Optimize and fix vulnerabilities in frontend and metadata services
1 parent 5d433b7 commit e410de0

File tree

54 files changed

+67711
-32759
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+67711
-32759
lines changed

.github/workflows/code_check_frontend.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ jobs:
3434
NODE_AUTH_TOKEN: ${{ secrets.NPMRC_TOKEN }}
3535

3636
- name: 🧪 Test
37-
env:
38-
NODE_OPTIONS: "--max_old_space_size=8192"
3937
run: |
4038
npm run test
4139

.github/workflows/frontend_sonar_scan.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ jobs:
3131
- name: 🧪 Test
3232
working-directory: govtool/frontend
3333
env:
34-
NODE_OPTIONS: "--max_old_space_size=6144"
3534
NODE_AUTH_TOKEN: ${{ secrets.NPMRC_TOKEN }}
3635
run: |
3736
npm ci

govtool/frontend/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ RUN \
2323
: "${VITE_USERSNAP_SPACE_API_KEY:?Build argument VITE_USERSNAP_SPACE_API_KEY is not set}" && \
2424
: "${VITE_IS_PROPOSAL_DISCUSSION_FORUM_ENABLED:?Build argument VITE_IS_PROPOSAL_DISCUSSION_FORUM_ENABLED is not set}"
2525

26-
ENV NODE_OPTIONS=--max_old_space_size=8192
27-
2826
WORKDIR /src
2927

3028
# Set npm configuration settings using environment variables
3129
RUN npm config set @intersect.mbo:registry "https://registry.npmjs.org/" --location=global
3230
RUN npm config set //registry.npmjs.org/:_authToken ${NPMRC_TOKEN} --location=global
3331

3432
COPY package.json package-lock.json ./
33+
COPY patches ./patches
34+
3535
RUN npm install
3636
COPY . .
3737
RUN npm run build

govtool/frontend/Dockerfile.qovery

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ ARG VITE_USERSNAP_SPACE_API_KEY
1111
ARG VITE_IS_PROPOSAL_DISCUSSION_FORUM_ENABLED='true'
1212
ARG VITE_PDF_API_URL
1313

14-
ENV NODE_OPTIONS=--max_old_space_size=8192
15-
1614
WORKDIR /src
1715

1816
# Set npm configuration settings using environment variables
1917
RUN npm config set @intersect.mbo:registry "https://registry.npmjs.org/" --location=global
2018
RUN npm config set //registry.npmjs.org/:_authToken ${NPMRC_TOKEN} --location=global
2119

2220
COPY package.json package-lock.json ./
21+
COPY patches ./patches
22+
2323
RUN npm install
2424
COPY . .
2525
RUN npm run build

govtool/frontend/junit-report.xml

Lines changed: 205 additions & 120 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)