add preprod setup

This commit is contained in:
Pritimay Sarkar
2023-09-07 11:22:05 +05:30
parent f269b12da1
commit 327aa07735
3 changed files with 23 additions and 12 deletions

View File

@@ -11,7 +11,7 @@ function ExportData({ url, show }) {
const [endDate, setEndDate] = useState("");
const fetchFile = (start_date, end_date) => {
window.location.href = `https://asia-south1-hpos-af3cc.cloudfunctions.net/consolidation?start_date=${moment(startDate).format("YYYY-MM-DD")}&end_date=${moment(endDate).format("YYYY-MM-DD")}`;
window.location.href = `https://asia-south1-hpos-preprod.cloudfunctions.net/consolidation?start_date=${moment(startDate).format("YYYY-MM-DD")}&end_date=${moment(endDate).format("YYYY-MM-DD")}`;
}
return (

View File

@@ -15,7 +15,7 @@ function Registration() {
setCounter(counter + 1);
axios({
method: 'post',
url: "https://asia-south1-hpos-af3cc.cloudfunctions.net/registerUser",
url: "https://asia-south1-hpos-preprod.cloudfunctions.net/registerUser",
data: {
"_id": id,
"aadharId": "2808202300001",

View File

@@ -15,17 +15,28 @@ import { getAnalytics } from "firebase/analytics";
// };
/* prod */
/* preprod */
const firebaseConfig = {
apiKey: "AIzaSyBF4pLZReAedU4dWX1eRJNFNIaOIz2xk4s",
authDomain: "hpos-prod.firebaseapp.com",
projectId: "hpos-prod",
storageBucket: "hpos-prod.appspot.com",
messagingSenderId: "1012719870714",
appId: "1:1012719870714:web:fcd00acef93f6612de5f43",
measurementId: "G-B0NZ7DEF69"
apiKey: "AIzaSyB2-suWmKh2PgQbRmx7rzPjYhgoovQIsQ8",
authDomain: "hpos-preprod.firebaseapp.com",
projectId: "hpos-preprod",
storageBucket: "hpos-preprod.appspot.com",
messagingSenderId: "121176529204",
appId: "1:121176529204:web:6c0db8e642992192bbed61",
measurementId: "G-GYM6LRQ8KR"
};
// /* prod */
// const firebaseConfig = {
// apiKey: "AIzaSyBF4pLZReAedU4dWX1eRJNFNIaOIz2xk4s",
// authDomain: "hpos-prod.firebaseapp.com",
// projectId: "hpos-prod",
// storageBucket: "hpos-prod.appspot.com",
// messagingSenderId: "1012719870714",
// appId: "1:1012719870714:web:fcd00acef93f6612de5f43",
// measurementId: "G-B0NZ7DEF69"
// };
const app = initializeApp(firebaseConfig);
const analytics = getAnalytics(app);