import App from 'next/app' import Head from 'next/head' import React from 'react' import Layout from '../components/Layout' import config from '../config' import '../styl/styl.styl' class MyApp extends App { public componentDidMount() { if (window.location.origin !== config.domain && window.location.hostname !== "localhost") { window.location.replace(`${config.domain}${window.location.pathname}`) } } public render() { const { Component, pageProps } = this.props return( {/* General */} {config.og.title} {/* Open Graph / Twitter */} ) } } export default MyApp