wip: docker

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-01-14 07:39:02 +01:00
parent 1b10371940
commit 719a82f1c4
68 changed files with 3105 additions and 328 deletions

View File

@@ -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();

View File

@@ -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();
});