diff --git a/web/apps/payments/src/pages/404.tsx b/web/apps/payments/src/pages/404.tsx deleted file mode 100644 index 8654d4ed71..0000000000 --- a/web/apps/payments/src/pages/404.tsx +++ /dev/null @@ -1,9 +0,0 @@ -import { Container } from "components/Container"; -import React from "react"; -import S from "utils/strings"; - -const Page: React.FC = () => { - return {S.error_404}; -}; - -export default Page; diff --git a/web/apps/payments/src/utils/strings.ts b/web/apps/payments/src/utils/strings.ts index 68f5be9214..7285ea8be9 100644 --- a/web/apps/payments/src/utils/strings.ts +++ b/web/apps/payments/src/utils/strings.ts @@ -7,7 +7,6 @@ */ const S = { error_generic: "Oops, something went wrong.", - error_404: "404 | This page could not be found.", }; export default S; diff --git a/web/apps/payments/src/vite-env.d.ts b/web/apps/payments/src/vite-env.d.ts index 73878f4326..90af95a138 100644 --- a/web/apps/payments/src/vite-env.d.ts +++ b/web/apps/payments/src/vite-env.d.ts @@ -1,5 +1,9 @@ +/* Type shims provided by vite, e.g. for asset imports + https://vitejs.dev/guide/features.html#client-types */ + /// +/** Types for the vite injected environment variables */ interface ImportMetaEnv { /** * Override the origin (scheme://host:port) of Ente's API to connect to. diff --git a/web/packages/build-config/tsconfig-vite.json b/web/packages/build-config/tsconfig-vite.json index 5f8f539f41..8a0d12f15f 100644 --- a/web/packages/build-config/tsconfig-vite.json +++ b/web/packages/build-config/tsconfig-vite.json @@ -4,6 +4,9 @@ * The base configuration was generated using `yarn create vite`. This was * already almost the same as the `tsconfig-typecheck.json` we use * elsewhere, with one or two differences. + * + * For more details about the flags vite cares about, see + * https://vitejs.dev/guide/features.html#typescript-compiler-options */ "compilerOptions": { "target": "ES2020",