ackee-removed
This commit is contained in:
parent
64af217dd7
commit
a9d9108463
|
@ -31,7 +31,6 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@authorizerdev/authorizer-js": "1.2.11",
|
||||
"ackee-tracker": "5.1.0",
|
||||
"form-data": "4.0.0",
|
||||
"i18next": "22.4.15",
|
||||
"i18next-icu": "2.3.0",
|
||||
|
|
|
@ -37,13 +37,9 @@ export const ArticlePage = (props: PageProps) => {
|
|||
})
|
||||
|
||||
onMount(() => {
|
||||
const script = document.createElement('script')
|
||||
script.async = true
|
||||
script.src = 'https://ackee.discours.io/increment.js'
|
||||
script.dataset.ackeeServer = 'https://ackee.discours.io'
|
||||
script.dataset.ackeeDomainId = '2a6df3a8-53ac-4383-8cc6-73d38cea4524'
|
||||
try {
|
||||
document.body.appendChild(script)
|
||||
// document.body.appendChild(script)
|
||||
console.debug('TODO: connect ga')
|
||||
} catch (error) {
|
||||
console.warn(error)
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import type { PageContext } from './types'
|
||||
import type { PageContextBuiltInClientWithClientRouting } from 'vike/types'
|
||||
|
||||
import * as Sentry from '@sentry/browser'
|
||||
// import * as Sentry from '@sentry/browser'
|
||||
import i18next from 'i18next'
|
||||
import HttpApi from 'i18next-http-backend'
|
||||
import ICU from 'i18next-icu'
|
||||
|
@ -9,7 +9,7 @@ import { hydrate } from 'solid-js/web'
|
|||
|
||||
import { App } from '../components/App'
|
||||
import { initRouter } from '../stores/router'
|
||||
import { SENTRY_DSN } from '../utils/config'
|
||||
// import { SENTRY_DSN } from '../utils/config'
|
||||
import { resolveHydrationPromise } from '../utils/hydrationPromise'
|
||||
|
||||
let layoutReady = false
|
||||
|
@ -20,13 +20,13 @@ export const render = async (pageContext: PageContextBuiltInClientWithClientRout
|
|||
const { pathname, search } = window.location
|
||||
const searchParams = Object.fromEntries(new URLSearchParams(search))
|
||||
initRouter(pathname, searchParams)
|
||||
|
||||
/*
|
||||
if (SENTRY_DSN) {
|
||||
Sentry.init({
|
||||
dsn: SENTRY_DSN,
|
||||
})
|
||||
}
|
||||
|
||||
*/
|
||||
// eslint-disable-next-line import/no-named-as-default-member
|
||||
await i18next
|
||||
.use(HttpApi)
|
||||
|
|
Loading…
Reference in New Issue
Block a user