From 3d3fba7c6432ca7ba3b1d322120d67ff1937796e Mon Sep 17 00:00:00 2001 From: Brandon Pereira Date: Fri, 10 Jul 2026 15:02:21 -0600 Subject: [PATCH 1/2] fix(app): copy css.d.ts into Docker builder stage The TypeScript 6 upgrade (#2617) added packages/app/css.d.ts to type side-effect stylesheet imports (e.g. '@mantine/core/styles.css') and updated the Dockerfile to copy the new mdx.d.ts, but omitted css.d.ts. The builder stage assembles app source from selective COPY statements (src, pages, public, styles, types) that don't include package-root .d.ts files, so css.d.ts never reached the build and the production image failed type checking with TS2882. Copy it alongside mdx.d.ts. --- .changeset/docker-copy-css-dts.md | 5 +++++ docker/hyperdx/Dockerfile | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/docker-copy-css-dts.md diff --git a/.changeset/docker-copy-css-dts.md b/.changeset/docker-copy-css-dts.md new file mode 100644 index 0000000000..6d291cb40e --- /dev/null +++ b/.changeset/docker-copy-css-dts.md @@ -0,0 +1,5 @@ +--- +"@hyperdx/app": patch +--- + +Fix Docker build failure after the TypeScript 6 upgrade. The `css.d.ts` ambient declaration (which types side-effect stylesheet imports like `@mantine/core/styles.css`) was not copied into the builder stage, so the production image build failed type checking with TS2882. The Dockerfile now copies `css.d.ts` alongside `mdx.d.ts`. diff --git a/docker/hyperdx/Dockerfile b/docker/hyperdx/Dockerfile index fdf8bd696e..f8c90cdcbe 100644 --- a/docker/hyperdx/Dockerfile +++ b/docker/hyperdx/Dockerfile @@ -52,7 +52,7 @@ COPY .yarnrc.yml yarn.lock package.json nx.json .prettierrc .prettierignore ./ts # full source is copied in the build stages that need it. COPY ./packages/common-utils/package.json ./packages/common-utils/package.json COPY ./packages/api/jest.config.js ./packages/api/tsconfig.json ./packages/api/tsconfig.build.json ./packages/api/package.json ./packages/api/ -COPY ./packages/app/jest.config.js ./packages/app/tsconfig.json ./packages/app/tsconfig.build.json ./packages/app/package.json ./packages/app/next.config.mjs ./packages/app/mdx.d.ts ./packages/app/eslint.config.mjs ./packages/app/ +COPY ./packages/app/jest.config.js ./packages/app/tsconfig.json ./packages/app/tsconfig.build.json ./packages/app/package.json ./packages/app/next.config.mjs ./packages/app/css.d.ts ./packages/app/mdx.d.ts ./packages/app/eslint.config.mjs ./packages/app/ # Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed. RUN apk add --no-cache libc6-compat From 8acc1929d07429ebfb0c289496be28c6d974444a Mon Sep 17 00:00:00 2001 From: Brandon Pereira Date: Fri, 10 Jul 2026 15:04:07 -0600 Subject: [PATCH 2/2] chore: shorten changeset to one line --- .changeset/docker-copy-css-dts.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/docker-copy-css-dts.md b/.changeset/docker-copy-css-dts.md index 6d291cb40e..1f9864a59b 100644 --- a/.changeset/docker-copy-css-dts.md +++ b/.changeset/docker-copy-css-dts.md @@ -2,4 +2,4 @@ "@hyperdx/app": patch --- -Fix Docker build failure after the TypeScript 6 upgrade. The `css.d.ts` ambient declaration (which types side-effect stylesheet imports like `@mantine/core/styles.css`) was not copied into the builder stage, so the production image build failed type checking with TS2882. The Dockerfile now copies `css.d.ts` alongside `mdx.d.ts`. +Fix Docker production image build by copying `css.d.ts` into the builder stage so side-effect stylesheet imports type-check under TypeScript 6.