Skip to content

FrakEnvironment

FrakEnvironment = "prod" | "dev" | { backend: string; wallet: string; }

Defined in: types/config.ts:33

The environment the SDK talks to.

Either a named stage, or an explicit origin pair for local development and one-off setups. Both origins are always stated together — the backend is never guessed from the wallet url.

const env: FrakEnvironment = "dev";
const local: FrakEnvironment = {
wallet: "https://localhost:3000",
backend: "https://localhost:3030",
};