/
vite-env.d.ts
51 lines (40 loc) · 2.02 KB
/
vite-env.d.ts
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/// <reference types="vite/client" />
declare namespace Vite {
interface ImportMetaEnv {
MODE: 'development' | 'production' | 'development';
BASE_URL: string;
PROD: boolean;
DEV: boolean;
/* REQUIRED */
// Required. The full address of vtadmin-api's HTTP interface.
// Example: "http://127.0.0.1:12345"
VITE_VTADMIN_API_ADDRESS: string;
/* OPTIONAL */
// Optional. An API key for https://bugsnag.com. If defined,
// the @bugsnag/js client will be initialized. Your Bugsnag API key
// can be found in your Bugsnag Project Settings.
VITE_BUGSNAG_API_KEY?: string;
// Optional. Build variables.
VITE_BUILD_BRANCH?: string;
VITE_BUILD_SHA?: string;
// Optional, but recommended. When true, enables front-end components that query
// vtadmin-api's /api/experimental/tablet/{tablet}/debug/vars endpoint.
VITE_ENABLE_EXPERIMENTAL_TABLET_DEBUG_VARS?: boolean | string;
// Optional. Configures the `credentials` property for fetch requests.
// made against vtadmin-api. If unspecified, uses fetch defaults.
// See https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#sending_a_request_with_credentials_included
VITE_FETCH_CREDENTIALS?: RequestCredentials;
// Optional. Used for the document.title property. The default is "VTAdmin".
// Overriding this can be useful to differentiate between multiple VTAdmin deployments,
// e.g., "VTAdmin (staging)".
VITE_DOCUMENT_TITLE?: string;
// Optional. Defaults to "false". If "true", UI controls that correspond to write actions (PUT, POST, DELETE) will be hidden.
// Note that this *only* affects the UI. If write actions are a concern, Vitess operators are encouraged
// to also configure vtadmin-api for role-based access control (RBAC) if needed;
// see https://github.com/vitessio/vitess/blob/main/go/vt/vtadmin/rbac/rbac.go
VITE_READONLY_MODE?: string;
}
}
interface Window {
env: Vite.ImportMetaEnv;
}