Sitemap & robots file for subdomain meteor


I am creating an app using meteor that creates dynamic subdomain how meteor does like
Now i am willing to create sitemap and robots.txt for each url that is not given for meteor subdomain & & &

I am using gadicohen:sitemaps for sitemap creation .
My problem-
I am able to get hostname using . but how can i get it serverside to fetch subdomain .


Take a look at my comments in this thread:


Hi @hwillson, do you have any suggestions for robots.txt for subdomains? Since it’s the same codebase - I haven’t been able to figure this part out…