Skip to content

Configuration

The Mint application is configured via environment variables. All public configuration uses the NUXT_PUBLIC_ prefix and can be set in a .env file in the app directory.

sh
cp app/base/.env.example app/base/.env

General

VariableDefaultDescription
NUXT_PUBLIC_TITLEMintApplication title
NUXT_PUBLIC_DESCRIPTIONTo mint is a human right.Application description
NUXT_PUBLIC_DOMAINlocalhostDomain for subdomain-based artist scoping
NUXT_SSRtrueEnable/disable server side rendering
NITRO_PRESETnode_clusterNitro server preset

Chain

VariableDefaultDescription
NUXT_PUBLIC_CHAIN_ID1Target chain (1 for mainnet, 11155111 for Sepolia)
NUXT_PUBLIC_FACTORY_ADDRESSFactory contract address for the target chain
NUXT_PUBLIC_BLOCK_EXPLORERhttps://etherscan.ioBlock explorer URL
NUXT_PUBLIC_RPC1https://eth.llamarpc.comPrimary RPC endpoint
NUXT_PUBLIC_RPC2Fallback RPC endpoint
NUXT_PUBLIC_RPC3Fallback RPC endpoint
NUXT_PUBLIC_MAINNET_RPC1https://eth.llamarpc.comMainnet RPC (for ENS resolution on non-mainnet chains)

Artist Scope

VariableDefaultDescription
NUXT_PUBLIC_CREATOR_ADDRESSScope app to a single artist address

When set, the app only shows the configured artist's collections. This can also be set via URL subdomains (e.g. artist.mint.example.com).

Mint Defaults

Configure the default mint amount and target value for the mint input.

VariableQuery ParamDefaultDescription
NUXT_PUBLIC_MINT_AMOUNT?amount=N1Default number of tokens to mint
NUXT_PUBLIC_MINT_VALUE?value=N0 (off)Target USD value for dynamic default amount

Query parameters take precedence over environment variables.

Static Default

Set a fixed default mint amount:

sh
NUXT_PUBLIC_MINT_AMOUNT=10

This sets the mint input to 10 by default.

Dynamic Default (Target USD Value)

Set MINT_VALUE to automatically compute how many tokens to mint for a target dollar amount. The count updates reactively based on the current gas price and ETH/USD exchange rate (via Chainlink).

sh
NUXT_PUBLIC_MINT_VALUE=5

At a gas price of 10 gwei and ETH at $3,000, this would default to ~3 tokens (each costing ~$1.80). The amount always floors at 1 token, even if a single unit exceeds the target value.

When MINT_VALUE is set, it takes precedence over MINT_AMOUNT.

Query Parameter Override

All mint defaults can be overridden per-page via query parameters, useful for sharing links with pre-configured amounts:

https://mint.example.com/artist/collection/1?amount=100
https://mint.example.com/artist/collection/1?value=5

Services

VariableDefaultDescription
NUXT_PUBLIC_WALLET_CONNECT_PROJECT_IDWalletConnect project ID
NUXT_PUBLIC_IPFS_GATEWAYhttps://ipfs.io/ipfs/IPFS gateway URL
NUXT_PUBLIC_ARWEAVE_GATEWAYhttps://arweave.net/Arweave gateway URL