This commit is contained in:
dimitar 2025-06-24 21:35:00 +02:00
parent 443c48cb01
commit 916328f7d5
2 changed files with 1 additions and 5 deletions

3
.env
View File

@ -5,6 +5,3 @@ EXPO_PUBLIC_APPWRITE_USERS_COLLECTION_ID=679289990026ad25c429
EXPO_PUBLIC_APPWRITE_CARS_COLLECTION_ID=67aa22430023baf8dfcb
EXPO_PUBLIC_APPWRITE_BUCKET_ID=67aa2598002da47bee85
EXPO_PUBLIC_WORLDPAY_API_URL=https://api.worldpay.com/v1
EXPO_PUBLIC_WORLDPAY_KEY=your_worldpay_key_here

View File

@ -23,8 +23,7 @@ export const config = {
usersId: process.env.EXPO_PUBLIC_APPWRITE_USERS_COLLECTION_ID,
carId: process.env.EXPO_PUBLIC_APPWRITE_CARS_COLLECTION_ID,
bucketId: process.env.EXPO_PUBLIC_APPWRITE_BUCKET_ID,
worldpayApiUrl: process.env.NODE_ENV === 'development' ? 'https://api.worldpay.com/v1' : process.env.EXPO_PUBLIC_WORLDPAY_API_URL,
worldpayKey: process.env.NODE_ENV === 'development' ? 'your_worldpay_key_here' : process.env.EXPO_PUBLIC_WORLDPAY_KEY,
}
export const client = new Client();