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; + }; +}