only send data to faro from server (local host check)
This commit is contained in:
+1
-1
@@ -10,7 +10,7 @@ import Dashboard from "@/components/Dashboard/Dashboard";
|
|||||||
function App() {
|
function App() {
|
||||||
const isProduction = import.meta.env.PROD;
|
const isProduction = import.meta.env.PROD;
|
||||||
|
|
||||||
if (isProduction) {
|
if (isProduction && window.location.hostname === "localhost") {
|
||||||
console.debug("Initializing Faro environment...");
|
console.debug("Initializing Faro environment...");
|
||||||
|
|
||||||
initializeFaro({
|
initializeFaro({
|
||||||
|
|||||||
Reference in New Issue
Block a user