UNPKG

vite-plugin-react-server

Version:
11 lines 497 B
declare global { namespace NodeJS { interface ProcessEnv { NODE_ENV: "development" | "test" | "production"; } } } export declare const validEnvs: ["development", "test", "production"]; export declare const isValidEnv: (env: string) => env is (typeof validEnvs)[number]; export declare function getNodeEnv<E extends string = typeof process.env.NODE_ENV>(currentEnv?: E): "production" | (E & "development") | (E & "test"); //# sourceMappingURL=getNodeEnv.d.ts.map