Prerender does not work for litElement

Hi netlify teams. I’m currently interested that you have built in prerender feature as it will improve my SPA site’s SEO. Sadly, I’ve got problem on how to use prerender properly, as it shows blank page on any bot crawler. I’ve tried it using chrome dev tools, google console, and curl as twitter bot and got blank page on all of them.

My sites:

  1. https://www.krismaperkasa.com (production, prerender currently off)
  2. https://kpe-beta.netlify.app (staging, prerender on)

Stack that I use:

  1. library: LitElement (polymer-project.org)
  2. bundler: Parcel (parceljs.org)
  3. hosting: netlify
  4. source code: Krisma-Perkasa-Engineering/landing-page: Landing page for Krisma Perkasa Engineering (github.com)

This is screen shot from google console preview when prerender is on:

This is screen shot from google console preview when prerender is off:

Prerender is off

I’ve also test using netlify/prerender locally and got blank page on browser and got a lot of 400 on assets.

My suspect is prerender can not load any assets including javascript as it use relative path generated by parcel js.

Could you help me to make prerender work on my site? Thank you.

Hi, @3mp3ri0r. Our guide for how to debug prerendering is here:

The support guide explains how to run the prerender service locally so you can debug what your site is doing.

Note, our support team cannot debug why your custom code behaves this way. We can debug the prerendering service itself but our scope of support doesn’t cover debugging your site code. There is more about what our technical support does and does not cover here:

Now, this question is still definitely welcome here. Some other member of this forum may have the resources to debug the site code. I just wanted to explain what the limits are for the technical support provided by the support team at Netlify.

If there are questions about anything in this reply - for example, the scope of our support, the prerender service itself, or the support guide I linked to above - please let us know and our support team will be happy to answer.