Refactor/Project structure #67

Merged
KevinMidboe merged 56 commits from refactor/project-structure into master 2020-12-10 22:20:38 +00:00
Showing only changes of commit 913268b01c - Show all commits

View File

@@ -9,19 +9,18 @@ import { Vue as VueIntegration } from "@sentry/integrations";
Vue.use(VueRouter); Vue.use(VueRouter);
const ENV = window.location.href.includes("localhost") ? "development" : "production"; const ENV = window.location.href.includes("localhost") ? "development" : "production";
Sentry.init({ if (ENV !== "development") {
dsn: "https://7debc951f0074fb68d7a76a1e3ace6fa@o364834.ingest.sentry.io/4905091", Sentry.init({
integrations: [ dsn: "https://7debc951f0074fb68d7a76a1e3ace6fa@o364834.ingest.sentry.io/4905091",
new VueIntegration({ Vue }) integrations: [
], new VueIntegration({ Vue })
beforeSend: event => { ],
console.error(event); beforeSend: event => {
if (ENV) { console.error(event);
return null; return event;
} }
return event; })
} }
})
// Add global GA variables // Add global GA variables
window.ga = window.ga || function(){ window.ga = window.ga || function(){