diff --git a/dapp/.gitignore b/dapp/.gitignore index 58cb11d45b..6d672fa63c 100644 --- a/dapp/.gitignore +++ b/dapp/.gitignore @@ -56,3 +56,5 @@ abis/* # if you use npm instead of yarn do not commit the lock file to git because it can break the Google App Engine build package-lock.json + +.env \ No newline at end of file diff --git a/dapp/pages/_app.js b/dapp/pages/_app.js index c3b0c9944b..2913eca809 100644 --- a/dapp/pages/_app.js +++ b/dapp/pages/_app.js @@ -2,6 +2,7 @@ import React, { useEffect, useState } from 'react' import cookies from 'next-cookies' import { useWeb3React } from '@web3-react/core' import { useRouter } from 'next/router' +import Head from 'next/head' import { useCookies } from 'react-cookie' import { useStoreState } from 'pullstate' import { QueryClient, QueryClientProvider } from 'react-query' @@ -59,6 +60,10 @@ function App({ Component, pageProps, err }) { const tried = useEagerConnect() const address = useStoreState(AccountStore, (s) => s.address) + const canonicalUrl = ( + `https://app.ousd.com` + (router.asPath === '/' ? '' : router.asPath) + ).split('?')[0] + if (process.browser) { useEffect(() => { router.events.on('routeChangeComplete', (url) => { @@ -165,6 +170,9 @@ function App({ Component, pageProps, err }) { return ( <> + + + diff --git a/dapp/pages/_document.js b/dapp/pages/_document.js index e259bb1e70..abeb65225c 100644 --- a/dapp/pages/_document.js +++ b/dapp/pages/_document.js @@ -39,6 +39,12 @@ class MyDocument extends Document { type="text/javascript" > +