Update environment variables

This commit is contained in:
delivan 2022-12-19 21:25:22 +09:00
parent 05a63a79e1
commit d06fbfc4c7
3 changed files with 10 additions and 8 deletions

View File

@ -3,16 +3,17 @@ export const MainChainId = "osmo-test-4";
export const REFERRAL_KEY = "icns-referral";
export const RPC_URL =
process.env.OSMOSIS_RPC_URL ?? "https://rpc.testnet.osmosis.zone";
process.env.NEXT_PUBLIC_OSMOSIS_RPC_URL ?? "https://rpc.testnet.osmosis.zone";
export const REST_URL =
process.env.OSMOSIS_REST_URL ?? "https://lcd.testnet.osmosis.zone";
process.env.NEXT_PUBLIC_OSMOSIS_REST_URL ??
"https://lcd.testnet.osmosis.zone";
export const NAME_NFT_ADDRESS =
process.env.ICNS_NAME_NFT_CONTRACT_ADDRESS ??
process.env.NEXT_PUBLIC_ICNS_NAME_NFT_CONTRACT_ADDRESS ??
"osmo1xahnjn872smah6xle8n3z5a5teqq390qr959l805mkuw0kcy8g5smtdagg";
export const REGISTRAR_ADDRESS =
process.env.ICNS_REGISTRAR_CONTRACT_ADDRESS ??
process.env.NEXT_PUBLIC_ICNS_REGISTRAR_CONTRACT_ADDRESS ??
"osmo1npn97g7hsgqlp70rw8nhd7c7vyvkukv9x0n25sn4fk5mgcjlz4gq9zlgf3";
export const RESOLVER_ADDRESS =
process.env.ICNS_RESOLVER_CONTRACT_ADDRESS ??
process.env.NEXT_PUBLIC_ICNS_RESOLVER_CONTRACT_ADDRESS ??
"osmo1002awr7frr9wk44lc3vfzt0d2w6vz5z03ql6fszjsjy8vdcvk0sskruz3c";

View File

@ -7,7 +7,8 @@ export const WALLET_INSTALL_URL =
export const SELECTED_WALLET_KEY = "SELECTED_WALLET_KEY";
export const MINIMUM_VERSION = "0.11.22";
export const MINIMUM_OSMO_FEE = process.env.MINIMUM_OSMO_FEE ?? "0.5 OSMO";
export const MINIMUM_OSMO_FEE =
process.env.NEXT_PUBLIC_MINIMUM_OSMO_FEE ?? "0.5 OSMO";
export type WalletName = "Keplr" | "Cosmostation";
export interface WalletType {

View File

@ -524,8 +524,8 @@ export default function VerificationPage(props: { blockList: string[] }) {
export async function getStaticProps() {
let blockList: string[] = [];
if (process.env.BLOCK_LIST) {
blockList = process.env.BLOCK_LIST.trim().split(",");
if (process.env.NEXT_PUBLIC_BLOCK_LIST) {
blockList = process.env.NEXT_PUBLIC_BLOCK_LIST.trim().split(",");
}
return { props: { blockList } };