fix free mode

This commit is contained in:
zramsay 2025-01-14 08:58:27 -05:00
parent 10c57f6906
commit 70b5c78657
3 changed files with 4 additions and 3 deletions

View File

@ -9,8 +9,7 @@ import { analyzeImage, VisionAnalysisResult, VISION_CONFIG } from '../services/g
import { processMTMPayment } from '../services/paymentService'
import { connectWallet, WalletState } from '../services/walletService'
import { WalletType } from '../services/types'
const FREE_MODE = process.env.NEXT_PUBLIC_FREE_MODE === 'true'
import { FREE_MODE } from '../config/freeMode'
console.log('NEXT_PUBLIC_FREE_MODE value:', process.env.NEXT_PUBLIC_FREE_MODE)
console.log('FREE_MODE computed value:', FREE_MODE)

View File

@ -3,8 +3,8 @@
import React, { useState, useRef } from 'react'
import { Leaf } from 'lucide-react'
import { FREE_MODE } from '../config/freeMode'
const FREE_MODE = process.env.NEXT_PUBLIC_FREE_MODE === 'true'
console.log('ImageAnalysisCard FREE_MODE value:', FREE_MODE)

2
src/config/freeMode.ts Normal file
View File

@ -0,0 +1,2 @@
// src/config/freeMode.ts
export const FREE_MODE = process.env.NEXT_PUBLIC_FREE_MODE === 'true'