This commit is contained in:
Aarni Koskela
2022-02-11 16:54:44 +02:00
parent 5c237084f5
commit a4a04f1dac
14 changed files with 172 additions and 224 deletions

View File

@@ -2,6 +2,7 @@ import React from "react";
import Head from "next/head";
import "../styles/style.scss";
import { AppProps } from "next/app";
const metaImage = "/static/images/meta.jpg";
const metaDescription =
@@ -13,7 +14,7 @@ const metaKeywords =
"ohjelmointi,frontend,open source,devaus,suomi,javascript,clojure,go,java,node.js,io.js,angular.js,web";
const metaUrl = "https://koodiklinikka.fi/";
function MyApp({ Component, pageProps }) {
function MyApp({ Component, pageProps }: AppProps) {
return (
<>
<Head>

View File

@@ -17,11 +17,6 @@ function trackPageView() {
}
class MyDocument extends Document {
static async getInitialProps(ctx) {
const initialProps = await Document.getInitialProps(ctx);
return { ...initialProps };
}
componentDidMount() {
trackPageView();
}