diff --git a/Dockerfile.coverage b/Dockerfile.coverage index 5f1bece69..a62918502 100644 --- a/Dockerfile.coverage +++ b/Dockerfile.coverage @@ -8,7 +8,7 @@ WORKDIR /node/src/app COPY web ./ # Install the dependencies and build -RUN yarn install --frozen-lockfile && INLINE_RUNTIME_CHUNK=false yarn coverage +RUN yarn install --frozen-lockfile && GENERATE_SOURCEMAP=false INLINE_RUNTIME_CHUNK=false yarn coverage # ======================================= # ===== Build image for the backend ===== diff --git a/Dockerfile.dev b/Dockerfile.dev index 62abb43cb..ad8333680 100644 --- a/Dockerfile.dev +++ b/Dockerfile.dev @@ -8,7 +8,7 @@ WORKDIR /node/src/app COPY web ./ # Install the dependencies and build -RUN yarn install --frozen-lockfile && INLINE_RUNTIME_CHUNK=false yarn coverage +RUN yarn install --frozen-lockfile && GENERATE_SOURCEMAP=false INLINE_RUNTIME_CHUNK=false yarn coverage # ======================================= # ===== Build image for the backend ===== diff --git a/cmd/authelia-scripts/cmd_build.go b/cmd/authelia-scripts/cmd_build.go index 0fdbe3b13..6f9e44c00 100644 --- a/cmd/authelia-scripts/cmd_build.go +++ b/cmd/authelia-scripts/cmd_build.go @@ -77,7 +77,7 @@ func buildFrontend() { cmd = utils.CommandWithStdout("yarn", "build") cmd.Dir = webDirectory - cmd.Env = append(os.Environ(), "INLINE_RUNTIME_CHUNK=false") + cmd.Env = append(os.Environ(), "GENERATE_SOURCEMAP=false", "INLINE_RUNTIME_CHUNK=false") err = cmd.Run() if err != nil {