diff --git a/README.md b/README.md index f768e33..44affe4 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ # React + Vite +[![Deploy to Firebase Hosting on merge](https://github.com/Antoninop/servii-frontend/actions/workflows/firebase-hosting-merge.yml/badge.svg)](https://github.com/Antoninop/servii-frontend/actions/workflows/firebase-hosting-merge.yml) This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. diff --git a/index.html b/index.html index 0c589ec..e0a41e3 100644 --- a/index.html +++ b/index.html @@ -9,5 +9,6 @@
+ diff --git a/src/App.jsx b/src/App.jsx index f48abd1..c5596ed 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -20,6 +20,14 @@ const App = () => { const [loading, setLoading] = useState(true); useEffect(() => { + const script = document.createElement('script'); + + script.src = 'https://static.cloudflareinsights.com/beacon.min.js'; + script.async = true; + script.defer = true; + script.data = JSON.stringify({ + token: '5cef39a7410e4a4e8ab3dfbe163b73d0', + }); const unsubscribe = auth.onAuthStateChanged((user) => { setUser(user); setLoading(false); diff --git a/src/pages/LoginPage/firebase.js b/src/pages/LoginPage/firebase.js index 3643ad0..6687916 100644 --- a/src/pages/LoginPage/firebase.js +++ b/src/pages/LoginPage/firebase.js @@ -4,7 +4,7 @@ import { getAuth, GoogleAuthProvider, signInWithPopup } from 'firebase/auth'; const firebaseConfig = { apiKey: "AIzaSyAmIEy4uzsBTzQGhGkn7srDONu8QUoUVHs", - authDomain: "servi-e6705.firebaseapp.com", + authDomain: "app.servii.fr", projectId: "servi-e6705", storageBucket: "servi-e6705.appspot.com", messagingSenderId: "201267205657",