matfantinel / sveltekit-static-blog-template

A lightweight and customizable template for blogs and portfolio websites, built with SvelteKit.
https://sveltekit-static-blog-template.vercel.app
GNU General Public License v3.0
155 stars 33 forks source link

Is there a way to set a robots.txt config? #6

Closed ddogfoodd closed 1 year ago

ddogfoodd commented 1 year ago

I was wondering if there is a way to set a robots.txt file? Or would I have to add it manually after building?

matfantinel commented 1 year ago

@jalemann I believe just adding the file to the /static folder is enough! Everything in there is gonna be publicly accessible, so if a search engine tries going to your-site.com/robots.txt it will find it.

ddogfoodd commented 1 year ago

Thanks, that works!