// Which bundle this is: "web" (app.rangook.ir) or "native" (the apps).
// Android vs iOS and the store are runtime facts (app-info.ts), not build flags.
//
// Code that must not reach the other bundle needs the LITERAL check as an if-block:
//     if (process.env.NEXT_PUBLIC_APP_TARGET === "native") { ... import(...) }
// webpack drops that block, but not code after an early return or behind IS_NATIVE_BUILD.
export type AppTarget = "web" | "native";

export const APP_TARGET: AppTarget =
    process.env.NEXT_PUBLIC_APP_TARGET === "native" ? "native" : "web";

export const IS_NATIVE_BUILD = APP_TARGET === "native";
