How to write to a file in root

Hi,

I want to create a sitemap for a set of my pages dynamically as the number of pages I want to put in sitemap keeps changing. I can’t use Bubble’s in built mechanism of generating sitemap, as it doesn’t support path parameters in URLs and also it creates sitemap for all the entities without me having control on which entities to go in sitemap and which not.

I am able to create the xml text, but I don’t know how to put it in sitemap-xyz.xml in root folder automatically at a certain frequency.

I am talking about this, just that to do it automatically instead of manually.

Would appreciate any guidance on that.

Thanks,
Mukesh

Hey @mghatiya were you able to solve this?

No I didn’t. I got into something else and this one got put on hold.

However, I did read about a solution where you can create an API which would return this XML file when hit, so in a way you can replicate the behaviour if needed. But I didn’t get time to try it. Also, Bubble supports only POST APIs if I remember right, and not GET. So, there is another challenge of converting POST to GET.

1 Like