interface ConfigEnv {
    command: "build" | "serve";
    isPreview?: boolean;
    isSsrBuild?: boolean;
    mode: string;
}

Properties

command: "build" | "serve"

'serve': during dev (vite command) 'build': when building for production (vite build command)

isPreview?: boolean
isSsrBuild?: boolean
mode: string