From c5c62b68c998df0f342cadfd3798a3358b02fe12 Mon Sep 17 00:00:00 2001 From: Meir Roth <12494197+meirroth@users.noreply.github.com> Date: Fri, 5 Mar 2021 00:23:47 +0000 Subject: [PATCH] Added basePath --- pages/_app.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pages/_app.js b/pages/_app.js index 8206992d..0cf7011b 100644 --- a/pages/_app.js +++ b/pages/_app.js @@ -1,5 +1,6 @@ import React from 'react'; import Head from 'next/head'; +import { useRouter } from 'next/router'; import { IntlProvider } from 'react-intl'; import { Provider } from 'react-redux'; import { useStore } from 'redux/store'; @@ -25,15 +26,16 @@ const Intl = ({ children }) => { export default function App({ Component, pageProps }) { useForceSSL(process.env.FORCE_SSL); const store = useStore(); + const { basePath } = useRouter(); return ( - - - - - + + + + +