diff --git a/.env.local.sample b/.env.local.sample index 9fe081c..b44585f 100644 --- a/.env.local.sample +++ b/.env.local.sample @@ -1,5 +1,14 @@ +# development | staging | production +NODE_ENV=development + +# This application's URL - used for sitemaps. +FRONTEND_URL=http://localhost:3000 + # Your WordPress site URL NEXT_PUBLIC_WORDPRESS_URL=https://bpacfwpgraphql.wpengine.com # Plugin secret found in WordPress Settings->Headless -# FAUST_SECRET_KEY=YOUR_PLUGIN_SECRET \ No newline at end of file +# FAUST_SECRET_KEY=YOUR_PLUGIN_SECRET + +# Enable debug mode in Faust. +# FAUST_DEBUG=false diff --git a/pages/_app.js b/pages/_app.js index 8c28a4d..1d65d7d 100644 --- a/pages/_app.js +++ b/pages/_app.js @@ -2,7 +2,6 @@ import '@/faust.config' import { WordPressBlocksProvider } from '@faustwp/blocks' import { FaustProvider } from '@faustwp/core' import Head from 'next/head' -import { useRouter } from 'next/router' import React from 'react' import 'focus-visible' @@ -12,9 +11,7 @@ import { SearchProvider } from '@/components/Search' import { ThemeProvider } from '@/components/ThemeProvider' import blocks from '@/wp-blocks' -export default function MyApp({ Component, pageProps }) { - const router = useRouter() - +export default function MyApp({ Component, pageProps, router }) { return (