/* eslint-disable n/no-process-env */

/**
 * Indicates this is a production-optimized build.  Note this does NOT
 * necessarily indicate that we're running on a cloud machine or the live build
 * -- use `RUNNING_IN_CLOUD` or `IS_PRODUCTION_SERVER` out of `config/server.ts`
 * for that (if you need that on the client you'll need to write a client
 * component that receives that value as a prop).
 *
 * Basically this indicates if we're minified, excluding source maps, running
 * with the optimized React build, etc.
 */
export const IS_PRODUCTION_BUILD = process.env.NODE_ENV === "production";

/**
 * Region-blocked requests will be redirected here.  This is used in the
 * middleware to implement the block, and also consumed in any components that
 * are part of the page layout but need to know if the request is blocked from
 * accessing the app, such as the WalletButton in the app header.
 *
 * Don't change unless you also change the relevant app route path to match.
 */
export const REGION_BLOCKED_SEGMENT = "region-blocked";

/**
 * Similar to `REGION_BLOCKED_SEGMENT`; this is where vpn-blocked traffic will
 * be rewritten to.
 *
 * Don't change unless you also change the relevant app route path to match.
 */
export const VPN_BLOCKED_SEGMENT = "vpn-blocked";
