How can I return robots.txt ? #2201
-
|
I need to make |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
The You can find more information about static files and Fresh on the Static Files page in our documentation. |
Beta Was this translation helpful? Give feedback.
The
robots.txtfile is a text file and thus not a JavaScript file that needs to be executed. All static files like images, videos or other types belong in thestatic/directory. Everything in thestaticdirectory is accessible directly. So if you put a file calledrobots.txtin there, it will be accessible viahttp://<my-domain>/robots.txt.You can find more information about static files and Fresh on the Static Files page in our documentation.