455 lines
18 KiB
TypeScript
455 lines
18 KiB
TypeScript
|
|
// this file is generated — do not edit it
|
|
|
|
|
|
/// <reference types="@sveltejs/kit" />
|
|
|
|
/**
|
|
* This module provides access to environment variables that are injected _statically_ into your bundle at build time and are limited to _private_ access.
|
|
*
|
|
* | | Runtime | Build time |
|
|
* | ------- | -------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
|
|
* | Private | [`$env/dynamic/private`](https://svelte.dev/docs/kit/$env-dynamic-private) | [`$env/static/private`](https://svelte.dev/docs/kit/$env-static-private) |
|
|
* | Public | [`$env/dynamic/public`](https://svelte.dev/docs/kit/$env-dynamic-public) | [`$env/static/public`](https://svelte.dev/docs/kit/$env-static-public) |
|
|
*
|
|
* Static environment variables are [loaded by Vite](https://vitejs.dev/guide/env-and-mode.html#env-files) from `.env` files and `process.env` at build time and then statically injected into your bundle at build time, enabling optimisations like dead code elimination.
|
|
*
|
|
* **_Private_ access:**
|
|
*
|
|
* - This module cannot be imported into client-side code
|
|
* - This module only includes variables that _do not_ begin with [`config.kit.env.publicPrefix`](https://svelte.dev/docs/kit/configuration#env) _and do_ start with [`config.kit.env.privatePrefix`](https://svelte.dev/docs/kit/configuration#env) (if configured)
|
|
*
|
|
* For example, given the following build time environment:
|
|
*
|
|
* ```env
|
|
* ENVIRONMENT=production
|
|
* PUBLIC_BASE_URL=http://site.com
|
|
* ```
|
|
*
|
|
* With the default `publicPrefix` and `privatePrefix`:
|
|
*
|
|
* ```ts
|
|
* import { ENVIRONMENT, PUBLIC_BASE_URL } from '$env/static/private';
|
|
*
|
|
* console.log(ENVIRONMENT); // => "production"
|
|
* console.log(PUBLIC_BASE_URL); // => throws error during build
|
|
* ```
|
|
*
|
|
* The above values will be the same _even if_ different values for `ENVIRONMENT` or `PUBLIC_BASE_URL` are set at runtime, as they are statically replaced in your code with their build time values.
|
|
*/
|
|
declare module '$env/static/private' {
|
|
export const ELECTRON_RUN_AS_NODE: string;
|
|
export const ANDROID_API: string;
|
|
export const ANDROID_HOME: string;
|
|
export const ANDROID_NDK_HOME: string;
|
|
export const APPCODE_VM_OPTIONS: string;
|
|
export const AUTOJUMP_ERROR_PATH: string;
|
|
export const AUTOJUMP_SOURCED: string;
|
|
export const BUN_INSTALL: string;
|
|
export const BW_SESSION: string;
|
|
export const CC_aarch64_unknown_linux_musl: string;
|
|
export const CIVITAI_TOKEN: string;
|
|
export const CLION_VM_OPTIONS: string;
|
|
export const COLORTERM: string;
|
|
export const COMMAND_MODE: string;
|
|
export const CPPFLAGS: string;
|
|
export const CXX_aarch64_unknown_linux_musl: string;
|
|
export const DATAGRIP_VM_OPTIONS: string;
|
|
export const DATASPELL_VM_OPTIONS: string;
|
|
export const DEVECOSTUDIO_VM_OPTIONS: string;
|
|
export const EDITOR: string;
|
|
export const ELECTRON_MIRROR: string;
|
|
export const ELECTRON_NO_ATTACH_CONSOLE: string;
|
|
export const FLUTTER_STORAGE_BASE_URL: string;
|
|
export const FNM_ARCH: string;
|
|
export const FNM_COREPACK_ENABLED: string;
|
|
export const FNM_DIR: string;
|
|
export const FNM_LOGLEVEL: string;
|
|
export const FNM_MULTISHELL_PATH: string;
|
|
export const FNM_NODE_DIST_MIRROR: string;
|
|
export const FNM_RESOLVE_ENGINES: string;
|
|
export const FNM_VERSION_FILE_STRATEGY: string;
|
|
export const GATEWAY_VM_OPTIONS: string;
|
|
export const GHOSTTY_BIN_DIR: string;
|
|
export const GHOSTTY_RESOURCES_DIR: string;
|
|
export const GHOSTTY_SHELL_FEATURES: string;
|
|
export const GM_QEMU_START_ARGS: string;
|
|
export const GO111MODULE: string;
|
|
export const GOLAND_VM_OPTIONS: string;
|
|
export const GOPATH: string;
|
|
export const GOPRIVATE: string;
|
|
export const GOPROXY: string;
|
|
export const GOSUMDB: string;
|
|
export const GRADLE_USER_HOME: string;
|
|
export const GREP_COLOR: string;
|
|
export const GREP_COLORS: string;
|
|
export const HF_ENDPOINT: string;
|
|
export const HF_TOKEN: string;
|
|
export const HOME: string;
|
|
export const HOMEBREW_AUTO_UPDATE_SECS: string;
|
|
export const HOMEBREW_CELLAR: string;
|
|
export const HOMEBREW_INSTALL_FROM_API: string;
|
|
export const HOMEBREW_NO_ENV_HINTS: string;
|
|
export const HOMEBREW_PREFIX: string;
|
|
export const HOMEBREW_REPOSITORY: string;
|
|
export const HTTPS_PROXY: string;
|
|
export const HTTP_PROXY: string;
|
|
export const IDEA_VM_OPTIONS: string;
|
|
export const INFOPATH: string;
|
|
export const JAVA_HOME: string;
|
|
export const JDK_11_HOME: string;
|
|
export const JDK_17_HOME: string;
|
|
export const JDK_21_HOME: string;
|
|
export const JDK_8_HOME: string;
|
|
export const JETBRAINSCLIENT_VM_OPTIONS: string;
|
|
export const JETBRAINS_CLIENT_VM_OPTIONS: string;
|
|
export const LANG: string;
|
|
export const LC_ALL: string;
|
|
export const LDFLAGS: string;
|
|
export const LD_aarch64_unknown_linux_musl: string;
|
|
export const LESS_TERMCAP_mb: string;
|
|
export const LESS_TERMCAP_md: string;
|
|
export const LESS_TERMCAP_me: string;
|
|
export const LESS_TERMCAP_se: string;
|
|
export const LESS_TERMCAP_so: string;
|
|
export const LESS_TERMCAP_ue: string;
|
|
export const LESS_TERMCAP_us: string;
|
|
export const LOGNAME: string;
|
|
export const LOGNOTE_HOME: string;
|
|
export const LSCOLORS: string;
|
|
export const MACH_PORT_RENDEZVOUS_PEER_VALDATION: string;
|
|
export const MANPATH: string;
|
|
export const MallocNanoZone: string;
|
|
export const NPM_CONFIG_REGISTRY: string;
|
|
export const OSLogRateLimit: string;
|
|
export const PATH: string;
|
|
export const PHPSTORM_VM_OPTIONS: string;
|
|
export const PKG_CONFIG_PATH: string;
|
|
export const PNPM_HOME: string;
|
|
export const PUB_HOSTED_URL: string;
|
|
export const PWD: string;
|
|
export const PYCHARM_VM_OPTIONS: string;
|
|
export const PYTORCH_ENABLE_MPS_FALLBACK: string;
|
|
export const RIDER_VM_OPTIONS: string;
|
|
export const RUBYMINE_VM_OPTIONS: string;
|
|
export const RUSTFLAGS: string;
|
|
export const RUSTROVER_VM_OPTIONS: string;
|
|
export const RUSTUP_DIST_SERVER: string;
|
|
export const RUSTUP_UPDATE_ROOT: string;
|
|
export const SHELL: string;
|
|
export const SHLVL: string;
|
|
export const SSH_AUTH_SOCK: string;
|
|
export const STARSHIP_SESSION_KEY: string;
|
|
export const STARSHIP_SHELL: string;
|
|
export const STUDIO_VM_OPTIONS: string;
|
|
export const TERM: string;
|
|
export const TERMINFO: string;
|
|
export const TERM_PROGRAM: string;
|
|
export const TERM_PROGRAM_VERSION: string;
|
|
export const TMPDIR: string;
|
|
export const USER: string;
|
|
export const VSCODE_CLI: string;
|
|
export const VSCODE_CODE_CACHE_PATH: string;
|
|
export const VSCODE_CRASH_REPORTER_PROCESS_TYPE: string;
|
|
export const VSCODE_CWD: string;
|
|
export const VSCODE_ESM_ENTRYPOINT: string;
|
|
export const VSCODE_HANDLES_UNCAUGHT_ERRORS: string;
|
|
export const VSCODE_IPC_HOOK: string;
|
|
export const VSCODE_NLS_CONFIG: string;
|
|
export const VSCODE_PID: string;
|
|
export const WEBIDE_VM_OPTIONS: string;
|
|
export const WEBSTORM_VM_OPTIONS: string;
|
|
export const XDG_DATA_DIRS: string;
|
|
export const XPC_FLAGS: string;
|
|
export const XPC_SERVICE_NAME: string;
|
|
export const __CFBundleIdentifier: string;
|
|
export const __CF_USER_TEXT_ENCODING: string;
|
|
export const APPLICATION_INSIGHTS_NO_STATSBEAT: string;
|
|
export const VSCODE_L10N_BUNDLE_LOCATION: string;
|
|
export const APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL: string;
|
|
export const COPILOT_OTEL_ENABLED: string;
|
|
export const OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT: string;
|
|
export const COPILOT_OTEL_EXPORTER_TYPE: string;
|
|
export const COPILOT_OTEL_FILE_EXPORTER_PATH: string;
|
|
export const ELECTRON_NO_ASAR: string;
|
|
export const NODE_ENV: string;
|
|
}
|
|
|
|
/**
|
|
* This module provides access to environment variables that are injected _statically_ into your bundle at build time and are _publicly_ accessible.
|
|
*
|
|
* | | Runtime | Build time |
|
|
* | ------- | -------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
|
|
* | Private | [`$env/dynamic/private`](https://svelte.dev/docs/kit/$env-dynamic-private) | [`$env/static/private`](https://svelte.dev/docs/kit/$env-static-private) |
|
|
* | Public | [`$env/dynamic/public`](https://svelte.dev/docs/kit/$env-dynamic-public) | [`$env/static/public`](https://svelte.dev/docs/kit/$env-static-public) |
|
|
*
|
|
* Static environment variables are [loaded by Vite](https://vitejs.dev/guide/env-and-mode.html#env-files) from `.env` files and `process.env` at build time and then statically injected into your bundle at build time, enabling optimisations like dead code elimination.
|
|
*
|
|
* **_Public_ access:**
|
|
*
|
|
* - This module _can_ be imported into client-side code
|
|
* - **Only** variables that begin with [`config.kit.env.publicPrefix`](https://svelte.dev/docs/kit/configuration#env) (which defaults to `PUBLIC_`) are included
|
|
*
|
|
* For example, given the following build time environment:
|
|
*
|
|
* ```env
|
|
* ENVIRONMENT=production
|
|
* PUBLIC_BASE_URL=http://site.com
|
|
* ```
|
|
*
|
|
* With the default `publicPrefix` and `privatePrefix`:
|
|
*
|
|
* ```ts
|
|
* import { ENVIRONMENT, PUBLIC_BASE_URL } from '$env/static/public';
|
|
*
|
|
* console.log(ENVIRONMENT); // => throws error during build
|
|
* console.log(PUBLIC_BASE_URL); // => "http://site.com"
|
|
* ```
|
|
*
|
|
* The above values will be the same _even if_ different values for `ENVIRONMENT` or `PUBLIC_BASE_URL` are set at runtime, as they are statically replaced in your code with their build time values.
|
|
*/
|
|
declare module '$env/static/public' {
|
|
|
|
}
|
|
|
|
/**
|
|
* This module provides access to environment variables set _dynamically_ at runtime and that are limited to _private_ access.
|
|
*
|
|
* | | Runtime | Build time |
|
|
* | ------- | -------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
|
|
* | Private | [`$env/dynamic/private`](https://svelte.dev/docs/kit/$env-dynamic-private) | [`$env/static/private`](https://svelte.dev/docs/kit/$env-static-private) |
|
|
* | Public | [`$env/dynamic/public`](https://svelte.dev/docs/kit/$env-dynamic-public) | [`$env/static/public`](https://svelte.dev/docs/kit/$env-static-public) |
|
|
*
|
|
* Dynamic environment variables are defined by the platform you're running on. For example if you're using [`adapter-node`](https://github.com/sveltejs/kit/tree/main/packages/adapter-node) (or running [`vite preview`](https://svelte.dev/docs/kit/cli)), this is equivalent to `process.env`.
|
|
*
|
|
* **_Private_ access:**
|
|
*
|
|
* - This module cannot be imported into client-side code
|
|
* - This module includes variables that _do not_ begin with [`config.kit.env.publicPrefix`](https://svelte.dev/docs/kit/configuration#env) _and do_ start with [`config.kit.env.privatePrefix`](https://svelte.dev/docs/kit/configuration#env) (if configured)
|
|
*
|
|
* > [!NOTE] In `dev`, `$env/dynamic` includes environment variables from `.env`. In `prod`, this behavior will depend on your adapter.
|
|
*
|
|
* > [!NOTE] To get correct types, environment variables referenced in your code should be declared (for example in an `.env` file), even if they don't have a value until the app is deployed:
|
|
* >
|
|
* > ```env
|
|
* > MY_FEATURE_FLAG=
|
|
* > ```
|
|
* >
|
|
* > You can override `.env` values from the command line like so:
|
|
* >
|
|
* > ```sh
|
|
* > MY_FEATURE_FLAG="enabled" npm run dev
|
|
* > ```
|
|
*
|
|
* For example, given the following runtime environment:
|
|
*
|
|
* ```env
|
|
* ENVIRONMENT=production
|
|
* PUBLIC_BASE_URL=http://site.com
|
|
* ```
|
|
*
|
|
* With the default `publicPrefix` and `privatePrefix`:
|
|
*
|
|
* ```ts
|
|
* import { env } from '$env/dynamic/private';
|
|
*
|
|
* console.log(env.ENVIRONMENT); // => "production"
|
|
* console.log(env.PUBLIC_BASE_URL); // => undefined
|
|
* ```
|
|
*/
|
|
declare module '$env/dynamic/private' {
|
|
export const env: {
|
|
ELECTRON_RUN_AS_NODE: string;
|
|
ANDROID_API: string;
|
|
ANDROID_HOME: string;
|
|
ANDROID_NDK_HOME: string;
|
|
APPCODE_VM_OPTIONS: string;
|
|
AUTOJUMP_ERROR_PATH: string;
|
|
AUTOJUMP_SOURCED: string;
|
|
BUN_INSTALL: string;
|
|
BW_SESSION: string;
|
|
CC_aarch64_unknown_linux_musl: string;
|
|
CIVITAI_TOKEN: string;
|
|
CLION_VM_OPTIONS: string;
|
|
COLORTERM: string;
|
|
COMMAND_MODE: string;
|
|
CPPFLAGS: string;
|
|
CXX_aarch64_unknown_linux_musl: string;
|
|
DATAGRIP_VM_OPTIONS: string;
|
|
DATASPELL_VM_OPTIONS: string;
|
|
DEVECOSTUDIO_VM_OPTIONS: string;
|
|
EDITOR: string;
|
|
ELECTRON_MIRROR: string;
|
|
ELECTRON_NO_ATTACH_CONSOLE: string;
|
|
FLUTTER_STORAGE_BASE_URL: string;
|
|
FNM_ARCH: string;
|
|
FNM_COREPACK_ENABLED: string;
|
|
FNM_DIR: string;
|
|
FNM_LOGLEVEL: string;
|
|
FNM_MULTISHELL_PATH: string;
|
|
FNM_NODE_DIST_MIRROR: string;
|
|
FNM_RESOLVE_ENGINES: string;
|
|
FNM_VERSION_FILE_STRATEGY: string;
|
|
GATEWAY_VM_OPTIONS: string;
|
|
GHOSTTY_BIN_DIR: string;
|
|
GHOSTTY_RESOURCES_DIR: string;
|
|
GHOSTTY_SHELL_FEATURES: string;
|
|
GM_QEMU_START_ARGS: string;
|
|
GO111MODULE: string;
|
|
GOLAND_VM_OPTIONS: string;
|
|
GOPATH: string;
|
|
GOPRIVATE: string;
|
|
GOPROXY: string;
|
|
GOSUMDB: string;
|
|
GRADLE_USER_HOME: string;
|
|
GREP_COLOR: string;
|
|
GREP_COLORS: string;
|
|
HF_ENDPOINT: string;
|
|
HF_TOKEN: string;
|
|
HOME: string;
|
|
HOMEBREW_AUTO_UPDATE_SECS: string;
|
|
HOMEBREW_CELLAR: string;
|
|
HOMEBREW_INSTALL_FROM_API: string;
|
|
HOMEBREW_NO_ENV_HINTS: string;
|
|
HOMEBREW_PREFIX: string;
|
|
HOMEBREW_REPOSITORY: string;
|
|
HTTPS_PROXY: string;
|
|
HTTP_PROXY: string;
|
|
IDEA_VM_OPTIONS: string;
|
|
INFOPATH: string;
|
|
JAVA_HOME: string;
|
|
JDK_11_HOME: string;
|
|
JDK_17_HOME: string;
|
|
JDK_21_HOME: string;
|
|
JDK_8_HOME: string;
|
|
JETBRAINSCLIENT_VM_OPTIONS: string;
|
|
JETBRAINS_CLIENT_VM_OPTIONS: string;
|
|
LANG: string;
|
|
LC_ALL: string;
|
|
LDFLAGS: string;
|
|
LD_aarch64_unknown_linux_musl: string;
|
|
LESS_TERMCAP_mb: string;
|
|
LESS_TERMCAP_md: string;
|
|
LESS_TERMCAP_me: string;
|
|
LESS_TERMCAP_se: string;
|
|
LESS_TERMCAP_so: string;
|
|
LESS_TERMCAP_ue: string;
|
|
LESS_TERMCAP_us: string;
|
|
LOGNAME: string;
|
|
LOGNOTE_HOME: string;
|
|
LSCOLORS: string;
|
|
MACH_PORT_RENDEZVOUS_PEER_VALDATION: string;
|
|
MANPATH: string;
|
|
MallocNanoZone: string;
|
|
NPM_CONFIG_REGISTRY: string;
|
|
OSLogRateLimit: string;
|
|
PATH: string;
|
|
PHPSTORM_VM_OPTIONS: string;
|
|
PKG_CONFIG_PATH: string;
|
|
PNPM_HOME: string;
|
|
PUB_HOSTED_URL: string;
|
|
PWD: string;
|
|
PYCHARM_VM_OPTIONS: string;
|
|
PYTORCH_ENABLE_MPS_FALLBACK: string;
|
|
RIDER_VM_OPTIONS: string;
|
|
RUBYMINE_VM_OPTIONS: string;
|
|
RUSTFLAGS: string;
|
|
RUSTROVER_VM_OPTIONS: string;
|
|
RUSTUP_DIST_SERVER: string;
|
|
RUSTUP_UPDATE_ROOT: string;
|
|
SHELL: string;
|
|
SHLVL: string;
|
|
SSH_AUTH_SOCK: string;
|
|
STARSHIP_SESSION_KEY: string;
|
|
STARSHIP_SHELL: string;
|
|
STUDIO_VM_OPTIONS: string;
|
|
TERM: string;
|
|
TERMINFO: string;
|
|
TERM_PROGRAM: string;
|
|
TERM_PROGRAM_VERSION: string;
|
|
TMPDIR: string;
|
|
USER: string;
|
|
VSCODE_CLI: string;
|
|
VSCODE_CODE_CACHE_PATH: string;
|
|
VSCODE_CRASH_REPORTER_PROCESS_TYPE: string;
|
|
VSCODE_CWD: string;
|
|
VSCODE_ESM_ENTRYPOINT: string;
|
|
VSCODE_HANDLES_UNCAUGHT_ERRORS: string;
|
|
VSCODE_IPC_HOOK: string;
|
|
VSCODE_NLS_CONFIG: string;
|
|
VSCODE_PID: string;
|
|
WEBIDE_VM_OPTIONS: string;
|
|
WEBSTORM_VM_OPTIONS: string;
|
|
XDG_DATA_DIRS: string;
|
|
XPC_FLAGS: string;
|
|
XPC_SERVICE_NAME: string;
|
|
__CFBundleIdentifier: string;
|
|
__CF_USER_TEXT_ENCODING: string;
|
|
APPLICATION_INSIGHTS_NO_STATSBEAT: string;
|
|
VSCODE_L10N_BUNDLE_LOCATION: string;
|
|
APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL: string;
|
|
COPILOT_OTEL_ENABLED: string;
|
|
OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT: string;
|
|
COPILOT_OTEL_EXPORTER_TYPE: string;
|
|
COPILOT_OTEL_FILE_EXPORTER_PATH: string;
|
|
ELECTRON_NO_ASAR: string;
|
|
NODE_ENV: string;
|
|
[key: `PUBLIC_${string}`]: undefined;
|
|
[key: `${string}`]: string | undefined;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* This module provides access to environment variables set _dynamically_ at runtime and that are _publicly_ accessible.
|
|
*
|
|
* | | Runtime | Build time |
|
|
* | ------- | -------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
|
|
* | Private | [`$env/dynamic/private`](https://svelte.dev/docs/kit/$env-dynamic-private) | [`$env/static/private`](https://svelte.dev/docs/kit/$env-static-private) |
|
|
* | Public | [`$env/dynamic/public`](https://svelte.dev/docs/kit/$env-dynamic-public) | [`$env/static/public`](https://svelte.dev/docs/kit/$env-static-public) |
|
|
*
|
|
* Dynamic environment variables are defined by the platform you're running on. For example if you're using [`adapter-node`](https://github.com/sveltejs/kit/tree/main/packages/adapter-node) (or running [`vite preview`](https://svelte.dev/docs/kit/cli)), this is equivalent to `process.env`.
|
|
*
|
|
* **_Public_ access:**
|
|
*
|
|
* - This module _can_ be imported into client-side code
|
|
* - **Only** variables that begin with [`config.kit.env.publicPrefix`](https://svelte.dev/docs/kit/configuration#env) (which defaults to `PUBLIC_`) are included
|
|
*
|
|
* > [!NOTE] In `dev`, `$env/dynamic` includes environment variables from `.env`. In `prod`, this behavior will depend on your adapter.
|
|
*
|
|
* > [!NOTE] To get correct types, environment variables referenced in your code should be declared (for example in an `.env` file), even if they don't have a value until the app is deployed:
|
|
* >
|
|
* > ```env
|
|
* > MY_FEATURE_FLAG=
|
|
* > ```
|
|
* >
|
|
* > You can override `.env` values from the command line like so:
|
|
* >
|
|
* > ```sh
|
|
* > MY_FEATURE_FLAG="enabled" npm run dev
|
|
* > ```
|
|
*
|
|
* For example, given the following runtime environment:
|
|
*
|
|
* ```env
|
|
* ENVIRONMENT=production
|
|
* PUBLIC_BASE_URL=http://example.com
|
|
* ```
|
|
*
|
|
* With the default `publicPrefix` and `privatePrefix`:
|
|
*
|
|
* ```ts
|
|
* import { env } from '$env/dynamic/public';
|
|
* console.log(env.ENVIRONMENT); // => undefined, not public
|
|
* console.log(env.PUBLIC_BASE_URL); // => "http://example.com"
|
|
* ```
|
|
*
|
|
* ```
|
|
*
|
|
* ```
|
|
*/
|
|
declare module '$env/dynamic/public' {
|
|
export const env: {
|
|
[key: `PUBLIC_${string}`]: string | undefined;
|
|
}
|
|
}
|