mirror of
https://github.com/apotdevin/thunderhub.git
synced 2024-11-19 18:00:05 +01:00
chore: add seo head and fix env
This commit is contained in:
parent
00c78513ec
commit
7c900be4d0
@ -1,12 +1,8 @@
|
||||
const dotEnvResult = require('dotenv').config();
|
||||
require('dotenv').config();
|
||||
const withBundleAnalyzer = require('@next/bundle-analyzer')({
|
||||
enabled: process.env.ANALYZE === 'true',
|
||||
});
|
||||
|
||||
if (dotEnvResult.error) {
|
||||
throw dotEnvResult.error;
|
||||
}
|
||||
|
||||
module.exports = withBundleAnalyzer({
|
||||
poweredByHeader: false,
|
||||
assetPrefix: process.env.BASE_PATH || '',
|
||||
|
@ -22,6 +22,7 @@ import {
|
||||
import { toast } from 'react-toastify';
|
||||
import 'react-toastify/dist/ReactToastify.css';
|
||||
import '../src/styles/FontStyles.css';
|
||||
import Head from 'next/head';
|
||||
|
||||
toast.configure({ draggable: false });
|
||||
|
||||
@ -65,13 +66,28 @@ class MyApp extends App<any> {
|
||||
render() {
|
||||
const { Component, pageProps, apollo } = this.props;
|
||||
return (
|
||||
<ApolloProvider client={apollo}>
|
||||
<ContextProvider>
|
||||
<Wrapper>
|
||||
<Component {...pageProps} />
|
||||
</Wrapper>
|
||||
</ContextProvider>
|
||||
</ApolloProvider>
|
||||
<>
|
||||
<Head>
|
||||
<title>ThunderHub - Lightning Node Manager</title>
|
||||
<meta
|
||||
name="viewport"
|
||||
content="initial-scale=1.0, width=device-width"
|
||||
key="viewport"
|
||||
/>
|
||||
<meta
|
||||
name="description"
|
||||
content="Manage and monitor your lightning network node right inside your browser"
|
||||
key="description"
|
||||
/>
|
||||
</Head>
|
||||
<ApolloProvider client={apollo}>
|
||||
<ContextProvider>
|
||||
<Wrapper>
|
||||
<Component {...pageProps} />
|
||||
</Wrapper>
|
||||
</ContextProvider>
|
||||
</ApolloProvider>
|
||||
</>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user