react-router
Version:
Declarative routing for React
26 lines (25 loc) • 670 B
JavaScript
/**
* react-router v8.0.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/
//#region lib/server-runtime/mode.ts
/**
* The mode to use when running the server.
*/
let ServerMode = /* @__PURE__ */ function(ServerMode) {
ServerMode["Development"] = "development";
ServerMode["Production"] = "production";
ServerMode["Test"] = "test";
return ServerMode;
}({});
function isServerMode(value) {
return value === "development" || value === "production" || value === "test";
}
//#endregion
export { ServerMode, isServerMode };