add preprod setup
This commit is contained in:
@@ -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 (
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
@@ -15,16 +15,27 @@ import { getAnalytics } from "firebase/analytics";
|
|||||||
// };
|
// };
|
||||||
|
|
||||||
|
|
||||||
/* prod */
|
/* preprod */
|
||||||
const firebaseConfig = {
|
const firebaseConfig = {
|
||||||
apiKey: "AIzaSyBF4pLZReAedU4dWX1eRJNFNIaOIz2xk4s",
|
apiKey: "AIzaSyB2-suWmKh2PgQbRmx7rzPjYhgoovQIsQ8",
|
||||||
authDomain: "hpos-prod.firebaseapp.com",
|
authDomain: "hpos-preprod.firebaseapp.com",
|
||||||
projectId: "hpos-prod",
|
projectId: "hpos-preprod",
|
||||||
storageBucket: "hpos-prod.appspot.com",
|
storageBucket: "hpos-preprod.appspot.com",
|
||||||
messagingSenderId: "1012719870714",
|
messagingSenderId: "121176529204",
|
||||||
appId: "1:1012719870714:web:fcd00acef93f6612de5f43",
|
appId: "1:121176529204:web:6c0db8e642992192bbed61",
|
||||||
measurementId: "G-B0NZ7DEF69"
|
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 app = initializeApp(firebaseConfig);
|
||||||
|
|||||||
Reference in New Issue
Block a user