Write file in the public folder

System Information
  • Strapi Version:
  • Operating System:
  • Database:
  • Node Version:
  • NPM Version:
  • Yarn Version:

Hi everyone,

I’m creating a plugin to generate a sitemap automatically. Does someone know how to write a file (sitemap.xml) into the public folder?

I have tried many kinds of paths, but none works.

Hi @candidosales,

We’ve had contact on GH regarding the sitemap plugin.

Is this question still relevant?

Yeah, this question was before I found your plugin. I’ll close it. Thanks!