puffin-app/src/vite-env.d.ts
2025-05-13 18:50:30 +02:00

26 lines
647 B
TypeScript

/// <reference types="vite/client" />
interface ImportMetaEnv {
readonly VITE_WREN_API_TOKEN: string;
readonly VITE_FORMSPREE_CONTACT_ID: string;
readonly VITE_FORMSPREE_OFFSET_ID: string;
readonly PROD: boolean;
readonly DEV: boolean;
// Add index signature for dynamic access
readonly [key: string]: string | boolean | undefined;
}
interface ImportMeta {
readonly env: ImportMetaEnv;
}
// Define the environment variable types for the window.env global
interface Window {
env?: {
[key: string]: string | undefined;
WREN_API_TOKEN?: string;
FORMSPREE_CONTACT_ID?: string;
FORMSPREE_OFFSET_ID?: string;
};
}