Skip to content

Instantly share code, notes, and snippets.

View JPWallhorn's full-sized avatar
🤖

JP Wallhorn JPWallhorn

🤖
View GitHub Profile
MyApp.getInitialProps = async ({ Component, ctx }) => {
try {
// Retrieve content documents
let pageProps = {};
let navContent = {};
let contactContent = {};
navContent = await Client.getSingle('nav_bar');
contactContent = await Client.getSingle('contact_form');
if (Component.getServerSideProps) {