From e1ca40de51202518e56d063489a5259e96cc324a Mon Sep 17 00:00:00 2001 From: Jeremie Pardou <jeremie@baserow.io> Date: Thu, 28 Mar 2024 11:27:13 +0100 Subject: [PATCH] Pin node version to 18.19 to prevent ordering diff between backend and frontend --- web-frontend/Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/web-frontend/Dockerfile b/web-frontend/Dockerfile index 736d42d60..83f44ab1d 100644 --- a/web-frontend/Dockerfile +++ b/web-frontend/Dockerfile @@ -1,4 +1,7 @@ -FROM node:18-bullseye as base +# Pin the version to 18.19 instead of 18 because somehow the ordering of utf-8 chars +# has changed in 18.20.0 which breaks the ordering compatibility between the frontend +# and the backend. +FROM node:18.19-bullseye as base ARG UID ENV UID=${UID:-9999} @@ -63,7 +66,7 @@ COPY --chown=$UID:$GID ./tests /baserow/tests/ # Create symlinks for jest tests RUN ln -s /baserow/web-frontend/node_modules/ /baserow/premium/web-frontend/node_modules \ - && ln -s /baserow/web-frontend/node_modules/ /baserow/enterprise/web-frontend/node_modules + && ln -s /baserow/web-frontend/node_modules/ /baserow/enterprise/web-frontend/node_modules # We don't bother running build-local in dev mode as it pre-compiles nuxt which won't # be used when running the nuxt dev server.