feat: add custom next-remote-watch

This commit is contained in:
Timothy Lin
2021-10-17 16:13:09 +08:00
parent 82e74ba391
commit cc2ecb1c3b
5 changed files with 355 additions and 1 deletions

View File

@ -6,6 +6,9 @@ import Head from 'next/head'
import Analytics from '@/components/analytics'
import LayoutWrapper from '@/components/LayoutWrapper'
import { ClientReload } from '@/components/ClientReload'
const isDevelopment = process.env.NODE_ENV === 'development'
export default function App({ Component, pageProps }) {
return (
@ -13,6 +16,7 @@ export default function App({ Component, pageProps }) {
<Head>
<meta content="width=device-width, initial-scale=1" name="viewport" />
</Head>
{isDevelopment && <ClientReload />}
<Analytics />
<LayoutWrapper>
<Component {...pageProps} />