wip: docker
This commit is contained in:
@@ -2,10 +2,13 @@ import { MixanWeb } from '@mixan-test/sdk-web';
|
||||
|
||||
export const mixan = new MixanWeb({
|
||||
verbose: true,
|
||||
url: process.env.NEXT_PUBLIC_MIXAN_URL!,
|
||||
clientId: process.env.NEXT_PUBLIC_MIXAN_CLIENT_ID!,
|
||||
clientSecret: process.env.NEXT_PUBLIC_MIXAN_CLIENT_SECRET!,
|
||||
url: 'http://localhost:3000/api/sdk',
|
||||
clientId: '568b4ed1-5d00-4f27-88a7-b8959e6674bd',
|
||||
clientSecret: '1e362905-d352-44c4-9263-e037a2ad52fb',
|
||||
trackIp: true,
|
||||
});
|
||||
|
||||
mixan.init({
|
||||
appVersion: '1.0.0',
|
||||
});
|
||||
mixan.trackOutgoingLinks();
|
||||
|
||||
@@ -3,11 +3,10 @@ import { mixan } from '@/analytics';
|
||||
import type { AppProps } from 'next/app';
|
||||
import { useRouter } from 'next/router';
|
||||
|
||||
mixan.init();
|
||||
|
||||
export default function MyApp({ Component, pageProps }: AppProps) {
|
||||
const router = useRouter();
|
||||
useEffect(() => {
|
||||
mixan.screenView();
|
||||
return router.events.on('routeChangeComplete', () => {
|
||||
mixan.screenView();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user