vite-env.d.ts 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /// <reference types="vite-plugin-pwa/vanillajs" />
  2. /// <reference types="vite-plugin-pwa/info" />
  3. /// <reference types="vite-plugin-svgr/client" />
  4. interface ImportMetaEnv {
  5. // The port to run the dev server
  6. VITE_APP_PORT: string;
  7. VITE_APP_BACKEND_V2_GET_URL: string;
  8. VITE_APP_BACKEND_V2_POST_URL: string;
  9. // collaboration WebSocket server (https: string
  10. VITE_APP_WS_SERVER_URL: string;
  11. // set this only if using the collaboration workflow we use on excalidraw.com
  12. VITE_APP_PORTAL_URL: string;
  13. VITE_APP_AI_BACKEND: string;
  14. VITE_APP_FIREBASE_CONFIG: string;
  15. // whether to disable live reload / HMR. Usuaully what you want to do when
  16. // debugging Service Workers.
  17. VITE_APP_DEV_DISABLE_LIVE_RELOAD: string;
  18. VITE_APP_DISABLE_SENTRY: string;
  19. // Set this flag to false if you want to open the overlay by default
  20. VITE_APP_COLLAPSE_OVERLAY: string;
  21. // Enable eslint in dev server
  22. VITE_APP_ENABLE_ESLINT: string;
  23. // Enable PWA in dev server
  24. VITE_APP_ENABLE_PWA: string;
  25. VITE_APP_PLUS_LP: string;
  26. VITE_APP_PLUS_APP: string;
  27. VITE_APP_GIT_SHA: string;
  28. MODE: string;
  29. DEV: string;
  30. PROD: string;
  31. }
  32. interface ImportMeta {
  33. readonly env: ImportMetaEnv;
  34. }