Adding Robots.txt file to Anvil [Solved]

I am trying to add a robots.txt to my Anvil App. However, I can’t figure out how to do it.

By what I have heard, robots.txt file need to be directly available like this

my_url.anvil.app/robots.txt

But when you place it in your assets, it is added to the following location

my_url.anvil.app/_/themes/robots.txt

So, is there any option for me to add files directly like this

my_url.anvil.app/robots.txt

1 Like