From 8f35371ca653c151d53caa717faf28d6879dd363 Mon Sep 17 00:00:00 2001 From: Jim O'Donnell Date: Wed, 5 Jun 2024 15:41:37 +0100 Subject: [PATCH] fix(frontend): fix the frontend Docker build Migrating to Vite broke the frontend Docker build. This commit updates the Dockerfile to reflect file changes in the Vite build, and fixes a broken type declaration for SVG modules. --- frontend/Dockerfile | 2 +- frontend/{ => src}/vite-env.d.ts | 0 frontend/tsconfig.json | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename frontend/{ => src}/vite-env.d.ts (100%) diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 34a78e4a..64315ccc 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -12,7 +12,7 @@ COPY package.json package-lock.json ./ RUN npm ci COPY public public COPY src src -COPY tsconfig.json tsconfig-typings.json .eslintrc.js ./ +COPY tsconfig.json tsconfig.vite.json eslint.config.js vite.config.ts index.html ./ # build to static site RUN npm run build diff --git a/frontend/vite-env.d.ts b/frontend/src/vite-env.d.ts similarity index 100% rename from frontend/vite-env.d.ts rename to frontend/src/vite-env.d.ts diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json index 163600ca..1283f569 100644 --- a/frontend/tsconfig.json +++ b/frontend/tsconfig.json @@ -25,6 +25,6 @@ ] } }, - "include": ["src", "vite-env.d.ts"], + "include": ["src"], "references": [{ "path": "./tsconfig.vite.json" }] }