Basic Configuration and Customization
Basic Configuration and Customization
Environment Configuration
1. Configuration File
import { Network } from "lucid-cardano";
// Blockfrost API endpoint configuration
const blockfrostEndpoint: string =
"https://preview-server.optim.finance/blockfrost";
// const blockfrostEndpoint: string = 'https://preprod-server.optim.finance/blockfrost';
// const blockfrostEndpoint: string = 'https://spo-server.optim.finance/blockfrost';
// const blockfrostEndpoint: string = 'http://localhost:8083/blockfrost';
// Cardano network selection
const cardanoNetwork: Network = "Preview";
// const cardanoNetwork: Network = 'Preprod';
// const cardanoNetwork: Network = 'Mainnet';
// Blockfrost API key configuration
const blockfrostKey: string = "previewMtZHkzC9Pfwdb8l5uLF13HJyQPJtsLpy";
// const blockfrostKey: string = 'preprodnVHn6TFwu2L0cARVUdGg2RUYh1xsy23g';
// const blockfrostKey: string = 'mainnetOpWFIMyQPVG3Zap4EOmBkKmEzGmHIilz';
// Optim server URLs
const optimServerUrl: string = "https://preview-server.optim.finance";
// const optimServerUrl: string = 'https://preprod-server.optim.finance';
// const optimServerUrl: string = 'https://spo-server.optim.finance';
// const optimServerUrl: string = 'http://localhost:8083';
const optimServer2Url: string = "https://preview-server.optim.finance";
// const optimServer2Url: string = 'https://preprod-server.optim.finance:8083';
// const optimServer2Url: string = 'https://spo-server.optim.finance';
// const optimServer2Url: string = 'http://localhost:8083';
// Verified names URL
const verifiedNamesUrl: string =
"https://raw.githubusercontent.com/OptimFinance/verified-offers/main/names";
export {
blockfrostEndpoint,
cardanoNetwork,
blockfrostKey,
optimServerUrl,
optimServer2Url,
verifiedNamesUrl,
};2. Environment Selection
3. Configuration Best Practices
Style Management
1. Global Styles
2. Component Styles
3. Key Style Features
4. Best Practices
Next Steps
Additional Resources
Last updated