Join the Webstudio community

Updated last month

Export robots.txt and sitemap.xml for static builds

At a glance

The community member is asking if it's possible to include robots.txt and sitemap.xml files in a static build (ZIP file), as they are required for their Netlify deployment. The comments suggest that this may not be possible due to the lack of a known domain in static builds. Some community members propose providing the domain to the CLI or using an unverified domain as potential solutions, but there is no explicitly marked answer.

Useful resources
Hi folks, do you think it's possible to include robots.txt and sitemap.xml (the ones generated by publishing to Webstudio hosting) in a static build (ZIP file)? Could be optional as well. For me, Netlify is a requirement, and so I need to create it manually before each deploy.
O
B
5 comments
@Bogdan do you remember the technical reason why these are not possible?
We don't know domain in static builds
could the domain be provided to the cli?
We had an idea to use unverified domain
Add a reply
Sign up and join the conversation on Discord