title: Website content not cached by Google Robots
body: <p>I've begun a Next.js project for my internship, and I have a big problem... Google bots doesn't index my main content. I have used getStaticProps to fetch my data (from WordPress API). I give you some screenshot from my code.</p>
  <p>and this is the website link : <a href="https://www.famillebonnie.com" rel="nofollow noreferrer">https://www.famillebonnie.com</a></p>
  <pre><code>export async function getStaticProps(context) {
  const datasMenuItems = await fetcherWpMenu(context.locale, &quot;menu-items&quot;, &quot;GET&quot;, &quot;principal&quot;)
  const idHomepage = (
      context.locale === &quot;fr&quot; ? 10
          : context.locale === &quot;en&quot; ? 60
              : context.locale === &quot;es&quot; ? 274
                  : 283
  )
  const datasPage = await fetcherWp(context.locale, &quot;pages&quot;, &quot;GET&quot;, idHomepage)
  const datasOptions = await fetcherACF(&quot;options/options&quot;, &quot;GET&quot;, context.locale)
  const datasMenuItemsFooter = await fetcherWpMenu(context.locale, &quot;menu-items&quot;, &quot;GET&quot;, &quot;footer&quot;)
  
  return {
      props: {
          datasMenuItems,
          datasPage,
          datasOptions,
          datasMenuItemsFooter
      },
      revalidate: 5
  }
  </code></pre>
  <p>}</p>
  <pre><code>useEffect(() =&gt; {
      function renderPageContent() {
          if (datasPage.acf.multiblocs) {
              const datas = datasPage.acf.multiblocs.map((item, key) =&gt; {
                  const ComponentName = item.acf_fc_layout
                  /*const DynamicACF = dynamic(() =&gt; import(`../components/blocks/` + ComponentName), {
                      suspense: true,
                      ssr: true,
                      loading: () =&gt; &lt;div className=&quot;loading&quot;&gt;&lt;CircleLoader size={150}/&gt;&lt;/div&gt;
                  })
                  return &lt;DynamicACF datas={item} key={item.acf_fc_layout + key}/&gt;*/
                  switch (ComponentName) {
                      case 'banniere_photovideo':
                          return &lt;Banniere_photovideo datas={item} key={item.acf_fc_layout + key}/&gt;
                          break
                      case 'mainblock_texte_image':
                          return &lt;Mainblock_texte_image datas={item} key={item.acf_fc_layout + key}/&gt;
                          break
                      case 'presentation_vins':
                          return &lt;Presentation_vins datas={item} key={item.acf_fc_layout + key}/&gt;
                          break
                      case 'press_medias':
                          return &lt;Press_medias datas={item} key={item.acf_fc_layout + key}/&gt;
                          break
                      case 'texte_image':
                          return &lt;Texte_image datas={item} key={item.acf_fc_layout + key}/&gt;
                          break
                      case 'texte_simple':
                          return &lt;Texte_simple datas={item} key={item.acf_fc_layout + key}/&gt;
                          break
                  }
              })
              setContent(datas)
          } else if (!datasPage.acf.multiblocs &amp;&amp; page.content.rendered) {
              setContent(page.content.rendered)
          } else {
              setContent(&quot;&lt;p&gt;Aucun contenu&lt;/p&gt;&quot;)
          }
      }
  
      renderPageContent()
  }, [datasPage])
  </code></pre>
  <p><a href="https://i.stack.imgur.com/FqthR.png" rel="nofollow noreferrer">Google cache</a></p>