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 [endDate, setEndDate] = useState("");
const fetchFile = (start_date, end_date) => { 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 ( return (

View File

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

View File

@@ -14,17 +14,28 @@ import { getAnalytics } from "firebase/analytics";
// measurementId: "G-6JHQ47S9DD" // measurementId: "G-6JHQ47S9DD"
// }; // };
/* preprod */
const firebaseConfig = {
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 */ // /* prod */
const firebaseConfig = { // const firebaseConfig = {
apiKey: "AIzaSyBF4pLZReAedU4dWX1eRJNFNIaOIz2xk4s", // apiKey: "AIzaSyBF4pLZReAedU4dWX1eRJNFNIaOIz2xk4s",
authDomain: "hpos-prod.firebaseapp.com", // authDomain: "hpos-prod.firebaseapp.com",
projectId: "hpos-prod", // projectId: "hpos-prod",
storageBucket: "hpos-prod.appspot.com", // storageBucket: "hpos-prod.appspot.com",
messagingSenderId: "1012719870714", // messagingSenderId: "1012719870714",
appId: "1:1012719870714:web:fcd00acef93f6612de5f43", // appId: "1:1012719870714:web:fcd00acef93f6612de5f43",
measurementId: "G-B0NZ7DEF69" // measurementId: "G-B0NZ7DEF69"
}; // };
const app = initializeApp(firebaseConfig); const app = initializeApp(firebaseConfig);