@talak-web3/config
v1.1.1
Published
Configuration management for talak-web3 applications.
Readme
@talak-web3/config
Configuration management for talak-web3 applications.
Installation
npm install @talak-web3/config
yarn add @talak-web3/config
pnpm add @talak-web3/configUsage
import { createConfig, defineConfig } from "@talak-web3/config";
export default defineConfig({
chains: ["ethereum", "polygon", "arbitrum"],
rpc: {
ethereum: {
http: ["https://eth-mainnet.g.alchemy.com/v2/demo_api_key"],
},
},
auth: {
domain: "myapp.com",
sessionDuration: 86400,
},
});
const config = createConfig({
configFile: "./talak.config.ts",
});Environment Variables
TALAK_CHAINS=ethereum,polygon
TALAK_RPC_ETHEREUM=https://example.com/resource
TALAK_AUTH_DOMAIN=myapp.com
TALAK_AUTH_SECRET=...License
MIT
