import AboutUs from "../components/about-us/AboutUs"; import Home from "../components/home/Home"; import Layout from "../components/layout/Layout"; import { loadUser } from "../redux/actions/userActions"; import { wrapper } from "../redux/store"; export default function AboutUsPage() { return ( <Layout> <AboutUs /> </Layout> ); } /** For server side rendering */ export const getServerSideProps = wrapper.getServerSideProps(store => async ({ req, query }) => { // Get the menu data. // get the locations data. // await store.dispatch(loadUser()) return { props: {}, }; });