• Resolved trafficlabois

    (@trafficlabois)


    I love the plugin, and I want to use it more, including the Pro version, but there is one thing I am struggling with I need to resolve. Our WordPress site uses a Vue component in the pages to render an affiliate list, it is rendered post-load, and I can not seem to get Simply Static to make a static version of the page, instead I get a static page which still tries to load the data for the component via /wp-json/*

    So I think there might be 2 approaches:

    1. Can Simply Static also crawl these wp-json URLs and load them as static files for the site?

    2. Can Simply Static gather the rendered output of these pages instead and serve them as static?

    Thanks in advance

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author patrickposner

    (@patrickposner)

    Hey @trafficlabois,

    Simply Static can crawl these URLs, but they are excluded by default.

    So I think option 1 would be more achievable here. For that check Simply Static -> Settings -> General -> Excludes and make sure wp-json.php isn’t part of the list.

    Option 2 is almost impossible to handle with Simply Static and would require something like a headless browser setup to achieve that.

    There are API tools like https://www.browserless.io/ to handle these kinds of things.

    Cheers,
    Patrick

    Thread Starter trafficlabois

    (@trafficlabois)

    @patrickposner, thank you for the support, I removed wp-json.php from the Exclude list, then listed the URLs in Additional URLs and they are crawled and saved.

    I agree that it is not realistic to expect Simply Static to render these frontend Vue components and save the output, so I used your approach as a workaround

    Great support!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Including WP-JSON Files in my Static Site’ is closed to new replies.