IO-3092 Add imgproxy uploads and update expo version.

This commit is contained in:
Patrick Fic
2025-02-21 13:54:56 -08:00
parent 23fdb02375
commit dc6cd88e8c
12 changed files with 410 additions and 174 deletions

62
env.js
View File

@@ -1,50 +1,50 @@
import * as Updates from 'expo-updates';
import * as Updates from "expo-updates";
const ENV = {
test: {
API_URL: 'https://api.test.imex.online',
uri: 'https://db.test.bodyshop.app/v1/graphql',
wsuri: 'wss://db.test.bodyshop.app/v1/graphql',
API_URL: "https://api.test.imex.online",
uri: "https://db.test.bodyshop.app/v1/graphql",
wsuri: "wss://db.test.bodyshop.app/v1/graphql",
REACT_APP_CLOUDINARY_ENDPOINT_API:
'https://api.cloudinary.com/v1_1/bodyshop',
REACT_APP_CLOUDINARY_ENDPOINT: 'https://res.cloudinary.com/bodyshop',
REACT_APP_CLOUDINARY_API_KEY: '473322739956866',
REACT_APP_CLOUDINARY_THUMB_TRANSFORMATIONS: 'c_fill,h_250,w_250',
"https://api.cloudinary.com/v1_1/bodyshop",
REACT_APP_CLOUDINARY_ENDPOINT: "https://res.cloudinary.com/bodyshop",
REACT_APP_CLOUDINARY_API_KEY: "473322739956866",
REACT_APP_CLOUDINARY_THUMB_TRANSFORMATIONS: "c_fill,h_250,w_250",
firebase: {
apiKey: 'AIzaSyBw7_GTy7GtQyfkIRPVrWHEGKfcqeyXw0c',
authDomain: 'imex-test.firebaseapp.com',
projectId: 'imex-test',
storageBucket: 'imex-test.appspot.com',
messagingSenderId: '991923618608',
appId: '1:991923618608:web:633437569cdad78299bef5',
measurementId: 'G-TW0XLZEH18',
apiKey: "AIzaSyBw7_GTy7GtQyfkIRPVrWHEGKfcqeyXw0c",
authDomain: "imex-test.firebaseapp.com",
projectId: "imex-test",
storageBucket: "imex-test.appspot.com",
messagingSenderId: "991923618608",
appId: "1:991923618608:web:633437569cdad78299bef5",
measurementId: "G-TW0XLZEH18",
},
},
prod: {
API_URL: 'https://api.imex.online',
uri: 'https://db.imex.online/v1/graphql',
wsuri: 'wss://db.imex.online/v1/graphql',
API_URL: "https://api.imex.online",
uri: "https://db.imex.online/v1/graphql",
wsuri: "wss://db.imex.online/v1/graphql",
REACT_APP_CLOUDINARY_ENDPOINT_API:
'https://api.cloudinary.com/v1_1/bodyshop',
REACT_APP_CLOUDINARY_ENDPOINT: 'https://res.cloudinary.com/bodyshop',
REACT_APP_CLOUDINARY_API_KEY: '473322739956866',
REACT_APP_CLOUDINARY_THUMB_TRANSFORMATIONS: 'c_fill,h_250,w_250',
"https://api.cloudinary.com/v1_1/bodyshop",
REACT_APP_CLOUDINARY_ENDPOINT: "https://res.cloudinary.com/bodyshop",
REACT_APP_CLOUDINARY_API_KEY: "473322739956866",
REACT_APP_CLOUDINARY_THUMB_TRANSFORMATIONS: "c_fill,h_250,w_250",
firebase: {
apiKey: 'AIzaSyDSezy-jGJreo7ulgpLdlpOwAOrgcaEkhU',
authDomain: 'imex-prod.firebaseapp.com',
databaseURL: 'https://imex-prod.firebaseio.com',
projectId: 'imex-prod',
storageBucket: 'imex-prod.appspot.com',
messagingSenderId: '253497221485',
appId: '1:253497221485:web:3c81c483b94db84b227a64',
measurementId: 'G-NTWBKG2L0M',
apiKey: "AIzaSyDSezy-jGJreo7ulgpLdlpOwAOrgcaEkhU",
authDomain: "imex-prod.firebaseapp.com",
databaseURL: "https://imex-prod.firebaseio.com",
projectId: "imex-prod",
storageBucket: "imex-prod.appspot.com",
messagingSenderId: "253497221485",
appId: "1:253497221485:web:3c81c483b94db84b227a64",
measurementId: "G-NTWBKG2L0M",
},
},
};
function getEnvVars() {
if (Updates.channel !== 'production') return ENV.test;
if (Updates.channel !== "production") return ENV.test;
else return ENV.prod;
}