Skip to main content
This page documents all environment variables used to configure the AgrospAI Data Space Portal. These are defined in the .env file at the root of your project.

Required Variables

Wallet and Blockchain Connection

NEXT_PUBLIC_INFURA_PROJECT_ID
string
required
Your Infura project ID for blockchain connectivity. Used as a fallback RPC provider.Default: xxx
NEXT_PUBLIC_INFURA_PROJECT_ID="your_infura_project_id"
NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID
string
required
WalletConnect project ID for wallet connection functionality.
NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID="your_walletconnect_project_id"

Marketplace Fee Configuration

NEXT_PUBLIC_MARKET_FEE_ADDRESS
string
required
The Ethereum address where marketplace fees will be sent.Default: 0x9984b2453eC7D99a73A5B3a46Da81f197B753C8d
NEXT_PUBLIC_MARKET_FEE_ADDRESS="0x9984b2453eC7D99a73A5B3a46Da81f197B753C8d"
NEXT_PUBLIC_PUBLISHER_MARKET_ORDER_FEE
string
Publisher market fee taken upon ordering an asset (absolute value). Declared on ERC20 creation.Default: 0
NEXT_PUBLIC_PUBLISHER_MARKET_ORDER_FEE="1"
NEXT_PUBLIC_PUBLISHER_MARKET_FIXED_SWAP_FEE
string
Fee received by the publisher market when a datatoken is bought from a fixed rate exchange (percentage).Default: 0
NEXT_PUBLIC_PUBLISHER_MARKET_FIXED_SWAP_FEE="1"
NEXT_PUBLIC_CONSUME_MARKET_ORDER_FEE
string
Consume market fee taken upon ordering an asset (absolute value). Specified on order.Default: 0
NEXT_PUBLIC_CONSUME_MARKET_ORDER_FEE="1"
NEXT_PUBLIC_CONSUME_MARKET_FIXED_SWAP_FEE
string
Fee received by the consume market when a datatoken is bought from a fixed rate exchange (percentage).Default: 0
NEXT_PUBLIC_CONSUME_MARKET_FIXED_SWAP_FEE="1"

Advanced Settings

Pricing Options

NEXT_PUBLIC_ALLOW_FIXED_PRICING
boolean
Enable or disable fixed pricing option during price creation.Default: true
NEXT_PUBLIC_ALLOW_FIXED_PRICING="true"
NEXT_PUBLIC_ALLOW_FREE_PRICING
boolean
Enable or disable free pricing option during price creation.Default: true
NEXT_PUBLIC_ALLOW_FREE_PRICING="true"
NEXT_PUBLIC_ALLOW_DYNAMIC_PRICING
boolean
Enable or disable dynamic pricing option during price creation.Default: false
NEXT_PUBLIC_ALLOW_DYNAMIC_PRICING="false"

Privacy and Compliance

NEXT_PUBLIC_PRIVACY_PREFERENCE_CENTER
boolean
Enable GDPR-compliant privacy preference center to manage cookies. When enabled, uses gdpr.json file in the content directory.Default: false
NEXT_PUBLIC_PRIVACY_PREFERENCE_CENTER="true"
NEXT_PUBLIC_COMPLIANCE_URI
string
URI for compliance information.Default: https://www.delta-dao.com/compliance
NEXT_PUBLIC_COMPLIANCE_URI="https://www.delta-dao.com/compliance"
NEXT_PUBLIC_COMPLIANCE_API_VERSION
string
Version of the compliance API to use.Default: 2210
NEXT_PUBLIC_COMPLIANCE_API_VERSION="2210"

Development Settings

Contract Addresses

NEXT_PUBLIC_NFT_FACTORY_ADDRESS
string
Address of the NFT Factory contract for development.
NEXT_PUBLIC_NFT_FACTORY_ADDRESS="0xxx"
NEXT_PUBLIC_OPF_COMMUNITY_FEE_COLECTOR
string
Address of the OPF Community Fee Collector contract.
NEXT_PUBLIC_OPF_COMMUNITY_FEE_COLECTOR="0xxx"
NEXT_PUBLIC_FIXED_RATE_EXCHANGE_ADDRESS
string
Address of the Fixed Rate Exchange contract.
NEXT_PUBLIC_FIXED_RATE_EXCHANGE_ADDRESS="0xxx"
NEXT_PUBLIC_DISPENSER_ADDRESS
string
Address of the Dispenser contract.
NEXT_PUBLIC_DISPENSER_ADDRESS="0xxx"
NEXT_PUBLIC_OCEAN_TOKEN_ADDRESS
string
Address of the Ocean Protocol token contract.
NEXT_PUBLIC_OCEAN_TOKEN_ADDRESS="0xxx"

Development Mode

NEXT_PUBLIC_MARKET_DEVELOPMENT
boolean
Enable development mode for the marketplace.
NEXT_PUBLIC_MARKET_DEVELOPMENT="true"

Network Endpoints

NEXT_PUBLIC_PROVIDER_URL
string
Custom provider URL for development.
NEXT_PUBLIC_PROVIDER_URL="http://localhost:8030"
NEXT_PUBLIC_SUBGRAPH_URI
string
URI for the subgraph endpoint.
NEXT_PUBLIC_SUBGRAPH_URI="http://localhost:9000"
NEXT_PUBLIC_METADATACACHE_URI
string
URI for the metadata cache (Aquarius) endpoint.Default: https://aquarius.pontus-x.eu
NEXT_PUBLIC_METADATACACHE_URI="http://localhost:5000"
NEXT_PUBLIC_RPC_URI
string
RPC endpoint URI for blockchain interaction.
NEXT_PUBLIC_RPC_URI="http://localhost:8545"
NEXT_PUBLIC_PURGATORY_URI
string
Purgatory URI for asset filtering. Leave empty to disable.Default: Empty string (disabled)
NEXT_PUBLIC_PURGATORY_URI=""
NEXT_PUBLIC_DOCKER_HUB_PROXY_URL
string
URL for fetching Docker Hub image information.Default: https://dockerhub-proxy.delta-dao.com
NEXT_PUBLIC_DOCKER_HUB_PROXY_URL="https://dockerhub-proxy.delta-dao.com"

Credentials and Redis

CONSENTS_API_URL
string
URL for the Consents API service.Default: http://localhost:8050/api
CONSENTS_API_URL="http://localhost:8050/api"
CREDENTIALS_REDIS_URL
string
Redis connection URL for credentials storage.Default: redis://localhost:6379
CREDENTIALS_REDIS_URL="redis://localhost:6379"
CREDENTIALS_REDIS_USERNAME
string
Redis username for authentication.Default: default
CREDENTIALS_REDIS_USERNAME="default"
CREDENTIALS_REDIS_PASSWORD
string
Redis password for authentication.Default: 1234
CREDENTIALS_REDIS_PASSWORD="your_redis_password"

Telemetry and Monitoring

OTEL_EXPORTER_OTLP_ENDPOINT
string
OpenTelemetry exporter endpoint for telemetry data.Default: http://localhost:4317
OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4317"
NEXT_TELEMETRY_DISABLED
number
Disable Next.js telemetry collection.Default: 1 (disabled)
NEXT_TELEMETRY_DISABLED=1

External Services

AGROPORTAL_API_KEY
string
API key for AgroPortal ontology service integration.
AGROPORTAL_API_KEY="your_agroportal_api_key_here"

UI Configuration

NEXT_PUBLIC_SHOW_PREVIEW_ALERT
boolean
Display alert banner for developer preview deployment.Default: false
NEXT_PUBLIC_SHOW_PREVIEW_ALERT="false"
NEXT_PUBLIC_SHOW_ONBOARDING_MODULE_BY_DEFAULT
boolean
Show the onboarding module by default for new users.Default: false
NEXT_PUBLIC_SHOW_ONBOARDING_MODULE_BY_DEFAULT="true"
NEXT_PUBLIC_HIDE_METAMASK_LOGIN
boolean
Hide the MetaMask Connect Wallet button from the UI.Default: false
NEXT_PUBLIC_HIDE_METAMASK_LOGIN="false"
NEXT_PUBLIC_ENABLE_AUTOMATION
boolean
Enable automation features in the marketplace.Default: true
NEXT_PUBLIC_ENABLE_AUTOMATION="true"

Example Configuration

Here’s a complete example .env file for production:
# Wallet and Blockchain
NEXT_PUBLIC_INFURA_PROJECT_ID="your_infura_project_id"
NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID="your_walletconnect_project_id"

# Marketplace Fees
NEXT_PUBLIC_MARKET_FEE_ADDRESS="0x9984b2453eC7D99a73A5B3a46Da81f197B753C8d"
NEXT_PUBLIC_PUBLISHER_MARKET_ORDER_FEE="1"
NEXT_PUBLIC_PUBLISHER_MARKET_FIXED_SWAP_FEE="1"
NEXT_PUBLIC_CONSUME_MARKET_ORDER_FEE="1"
NEXT_PUBLIC_CONSUME_MARKET_FIXED_SWAP_FEE="1"

# Pricing Options
NEXT_PUBLIC_ALLOW_FIXED_PRICING="true"
NEXT_PUBLIC_ALLOW_FREE_PRICING="true"
NEXT_PUBLIC_ALLOW_DYNAMIC_PRICING="false"

# Privacy
NEXT_PUBLIC_PRIVACY_PREFERENCE_CENTER="true"

# External Services
AGROPORTAL_API_KEY="your_agroportal_api_key_here"

# Telemetry
NEXT_TELEMETRY_DISABLED=1

Build docs developers (and LLMs) love