From bf02bcd24434da9190ab34067c602b0afa93f793 Mon Sep 17 00:00:00 2001 From: Carlo van Wyk <5310264+thecarlo@users.noreply.github.com> Date: Thu, 30 May 2024 08:17:13 +1000 Subject: [PATCH] Min words: 2 --- .env.local | 1 + src/components/GeneratePassword/index.tsx | 2 +- types/vite-env.d.ts | 8 ++++++++ 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 .env.local create mode 100644 types/vite-env.d.ts diff --git a/.env.local b/.env.local new file mode 100644 index 0000000..21ed465 --- /dev/null +++ b/.env.local @@ -0,0 +1 @@ +VITE_ANALYTICS_ID=G-NZ7P4Z286W diff --git a/src/components/GeneratePassword/index.tsx b/src/components/GeneratePassword/index.tsx index c4a39ae..3b73d24 100644 --- a/src/components/GeneratePassword/index.tsx +++ b/src/components/GeneratePassword/index.tsx @@ -282,7 +282,7 @@ export const GeneratePassword = (props: GeneratePasswordProps) => { ) => { diff --git a/types/vite-env.d.ts b/types/vite-env.d.ts new file mode 100644 index 0000000..35b8e82 --- /dev/null +++ b/types/vite-env.d.ts @@ -0,0 +1,8 @@ +/// + +interface ImportMeta { + env: { + [key: string]: string | boolean | undefined; + VITE_ANALYTICS_ID: string; + }; +}