question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Call pre-rendering via the javascript api

See original GitHub issue

Hi,

According to the docs, it should be possible to use the npx vite-plugin-ssr prerender command or use the javascript api import { prerender } from 'vite-plugin-ssr/cli but the javascript api does not work for me. vite-plugin-ssr/cli does not exist. Let me explain why we want to use this.

Our use case: We are building a website editor, the structure/content is saved in our Api as JSON and its possible to publish these changes afterwards (transform the JSON to a static generated website). We want to build a micro service that simply receives a JSON and outputs a list of static generated files wich we can fetch and put on a S3 bucket or anything else for example. We want to use a Cloudflare worker for this.

Do you need a reproduction repository? In my opinion its pretty clear what goes wrong.

Thanks. Kind regards, Sherin

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:18 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
brilloutcommented, Nov 23, 2021

I’ll contact you shortly. Sure 😃, win-win situation I guess 😃.

1reaction
brilloutcommented, Nov 13, 2021

Let me know if you still hit the problem

Read more comments on GitHub >

github_iconTop Results From Across the Web

Prerender Seamlessly Renders Javascript for Quicker Indexing
Prerender ® can seamlessly render Javascript built with the most popular frameworks & libraries ... Before using Prerender®, our site had challenges with...
Read more >
Use prerender or prefetch to load API call? - Stack Overflow
I am using a cURL call to a third party API for displaying a gif that shows the weather radar. This is all...
Read more >
Prerender pages in Chrome for instant page navigations
# Detecting prerender in JavaScript ... The document.prerendering API will return true while the page is prerendering. This can be used by pages ......
Read more >
Prerendering - HubSpot Developers
Prerendering is where the HubSpot CMS makes a static version of your website page, landing page, blog post or knowledge base article.
Read more >
Next.js Tutorial - 47 - APIs and Pre-rendering - YouTube
Courses - https://learn.codevolution.dev/⚡️ Checkout Taskade! https://www.taskade.com/ Support UPI - https://support.codevolution.dev/  ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found