How do I add robots.txt to deploy wpa

I am using Ionic 3 and deploy to Heroku as PWA.
In which folder do I create robots.txt?
And what do I have to do to have it in the root ( when deploying as PWA?

Thanks in advance.

You can add file directly into www folder