Fixes no-document-viewport-meta + adds lang='en' to <html> tag, little global fixes

pull/410/head
Alex van Andel 2021-08-03 18:15:24 +00:00
parent 60d8b05422
commit c3f5abe68f
3 changed files with 12 additions and 5 deletions

View File

@ -32,6 +32,10 @@ module.exports = withTM({
future: {
webpack5: true,
},
i18n: {
locales: ["en"],
defaultLocale: "en",
},
typescript: {
ignoreBuildErrors: true,
},

View File

@ -1,12 +1,19 @@
import "../styles/globals.css";
import { createTelemetryClient, TelemetryProvider } from "../lib/telemetry";
import { createTelemetryClient, TelemetryProvider } from "@lib/telemetry";
import { Provider } from "next-auth/client";
import type { AppProps } from "next/app";
import Head from "next/head";
function MyApp({ Component, pageProps }: AppProps) {
return (
<TelemetryProvider value={createTelemetryClient()}>
<Provider session={pageProps.session}>
<Head>
<meta
name="viewport"
content="width=device-width, initial-scale=1.0"
/>
</Head>
<Component {...pageProps} />
</Provider>
</TelemetryProvider>

View File

@ -10,10 +10,6 @@ class MyDocument extends Document {
return (
<Html>
<Head>
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
/>
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />