Next.js pages are still supported!
35 |{siteDescription}
26 | 27 | 28 | 37 |Next.js pages are still supported!
35 |Error! {error.message}
; 107 | 108 | if ( 109 | !( 110 | data?.nodeByUri && 111 | (data.nodeByUri.__typename === "Category" || 112 | data.nodeByUri.__typename === "Tag") && 113 | data.nodeByUri.posts && 114 | data.nodeByUri.posts.nodes.length 115 | ) 116 | ) { 117 | returnNo posts have been published
; 118 | } 119 | 120 | const defaultSiteData: SiteDataQueryResponse["generalSettings"] = { 121 | title: "", 122 | description: "", 123 | }; 124 | const defaultMenuItems: HeaderMenuQueryResponse["primaryMenuItems"]["nodes"] = 125 | []; 126 | 127 | const siteData = siteDataQuery?.data?.generalSettings || defaultSiteData; 128 | const menuItems = 129 | headerMenuDataQuery?.data?.primaryMenuItems?.nodes || defaultMenuItems; 130 | 131 | const { title: siteTitle, description: siteDescription } = siteData; 132 | const { archiveType, name, posts } = data?.nodeByUri || {}; 133 | 134 | const loadMorePosts = async (): PromiseNo posts found.
221 | )} 222 | {posts.pageInfo.hasNextPage && ( 223 |62 | Learn more about Faust.js through guides and reference 63 | documentation. 64 |
65 | 66 | 67 | 73 |Explore production ready Faust.js starter projects.
75 | 76 | 77 | 83 |85 | Deploy your Faust.js app to Atlas along with your WordPress 86 | instance. 87 |
88 | 89 | 90 | 96 |Visit us on GitHub to explore how you can contribute!
98 | 99 |104 | To get started on WP Engine's Platform please follow the docs here{" "} 105 | 110 | https://developers.wpengine.com/docs/atlas/getting-started/create-app/ 111 | 112 |
113 | 114 |116 | At WP Engine, we have a strong community built around headless 117 | WordPress to support you with your journey. 118 |
119 |Error! {error.message}
; 56 | 57 | if (!data?.page) { 58 | returnNo pages have been published
; 59 | } 60 | 61 | const defaultSiteData: SiteDataQueryResponse["generalSettings"] = { 62 | title: "", 63 | description: "", 64 | }; 65 | const defaultMenuItems: HeaderMenuQueryResponse["primaryMenuItems"]["nodes"] = 66 | []; 67 | 68 | const siteData = siteDataQuery?.data?.generalSettings || defaultSiteData; 69 | const menuItems = 70 | headerMenuDataQuery?.data?.primaryMenuItems?.nodes || defaultMenuItems; 71 | const { title: siteTitle, description: siteDescription } = siteData; 72 | const { title, content } = data?.page || {}; 73 | 74 | return ( 75 | <> 76 | 77 |