-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite-env.d.ts
More file actions
33 lines (26 loc) · 950 Bytes
/
vite-env.d.ts
File metadata and controls
33 lines (26 loc) · 950 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/// <reference types="vite/client" />
interface ImportMetaEnv {
// ✅ App identity
readonly VITE_APP_NAME: string;
readonly VITE_APP_VERSION: string;
// ✅ PostHog
readonly VITE_PUBLIC_POSTHOG_TOKEN?: string;
readonly VITE_PUBLIC_POSTHOG_KEY?: string;
readonly VITE_PUBLIC_POSTHOG_HOST: string;
// ✅ ImageKit
readonly VITE_IMAGEKIT_URL_ENDPOINT: string;
readonly VITE_IMAGEKIT_PUBLIC_KEY: string;
// ✅ API endpoints — public URLs only, never keys
readonly VITE_API_BASE_URL: string;
readonly VITE_WEBSOCKET_URL: string;
// ✅ Third-party PUBLIC keys only (publishable/public, not secret)
readonly VITE_STRIPE_PUBLISHABLE_KEY: string;
readonly VITE_GOOGLE_MAPS_API_KEY: string;
readonly VITE_SENTRY_DSN: string;
// ✅ Feature flags
readonly VITE_ENABLE_DEVTOOLS: "true" | "false";
readonly VITE_FEATURE_NEW_DASHBOARD: "true" | "false";
}
interface ImportMeta {
readonly env: ImportMetaEnv;
}