How can I return robots.txt ? #2201
Answered
by
marvinhagemeister
andriiradkevych
asked this question in
Q&A
|
I need to make |
Answered by
marvinhagemeister
Dec 28, 2023
Replies: 1 comment 3 replies
|
The You can find more information about static files and Fresh on the Static Files page in our documentation. |
3 replies
Answer selected by
marvinhagemeister
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.