Harden onion boot flow and deepen site surfaces
Add persistent onion key backup and restore, improve startup resilience, and flesh out the major site verticals with richer navigation, search coverage, and operator documentation. Made-with: Cursor
This commit is contained in:
14
lib/merchantBtc.ts
Normal file
14
lib/merchantBtc.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* Set NEXT_PUBLIC_MERCHANT_BTC_ADDRESS (and MERCHANT_BTC_ADDRESS for server verify) in .env.local
|
||||
* to your Bitcoin receiving address (e.g. bc1q...).
|
||||
*/
|
||||
export function getMerchantBtcAddress(): string {
|
||||
if (typeof window !== "undefined") {
|
||||
return (process.env.NEXT_PUBLIC_MERCHANT_BTC_ADDRESS || "").trim();
|
||||
}
|
||||
return (process.env.MERCHANT_BTC_ADDRESS || process.env.NEXT_PUBLIC_MERCHANT_BTC_ADDRESS || "").trim();
|
||||
}
|
||||
|
||||
export function isMerchantBtcConfigured(): boolean {
|
||||
return getMerchantBtcAddress().length > 0;
|
||||
}
|
||||
Reference in New Issue
Block a user