Prerender.io

Prerender.io is a Google-recommended dynamic rendering solution that enables Angular, React, Vue, or JavaScript sites to be crawled perfectly by search engines.

Integrate the Prerender.io API with the Formatting API

Setup the Prerender.io API trigger to run a workflow which integrates with the Formatting API. Pipedream's integration platform allows you to integrate Prerender.io and Formatting remarkably fast. Free for developers.

[Data] Convert JSON to String with the Formatting API

Convert an object to a JSON format string

 
Try it
[Data] Parse JSON with the Formatting API

Parse a JSON string

 
Try it
[Date/Time] Add/Subtract Time with the Formatting API

Add or subtract time from a given input

 
Try it
[Date/Time] Compare Dates with the Formatting API

Get the duration between two dates in days, hours, minutes, and seconds along with checking if they are the same.

 
Try it
[Date/Time] Format with the Formatting API

Format a date string to another date string. For more examples on formatting, see the Sugar Date Format documentation.

 
Try it

Overview of Prerender.io

Prerender.io is an API that enhances SEO by allowing servers to return fully rendered HTML pages to search engines and social media crawlers, ensuring that these services can index and display web content efficiently. Utilizing Prerender.io with Pipedream, developers can automate the caching and serving of rendered pages, monitor and manage the performance of their prerendered content, and integrate SEO enhancement processes into broader application workflows.

Connect Prerender.io

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    prerender: {
      type: "app",
      app: "prerender",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://api.prerender.io/recache`,
      method: `post`,
      data: {
        prerenderToken: this.prerender.$auth.token,
        url: "http://www.example.com/url/to/recache"
      },
    })
  },
})

Connect Formatting

1
2
3
4
5
6
export default defineComponent({
  async run({ steps, $ }) {
    const text = ' Hello world! ';
    return text.trim()
  },
})