-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Where to place Sitemap? #872
Comments
How do you build and deploy your site to production right now? |
The way I do this kind of thing, as a data point, is to copy the file to its destination in var fs = require('fs-extra')
var path = require('path')
var buildFeed = require('./scripts/buildFeed')
exports.postBuild = (pages, callback) => {
console.log('Building Atom feed')
// Build RSS feed.
buildFeed(pages, callback)
// Copy favicon.
fs.copySync(path.join(__dirname, '/favicon'), path.join(__dirname, '/public/favicon'))
// Next callback.
callback()
} The reason why I do it this way is because all the contents of |
It would be neat to have a |
@vianneylancres, looks like you have a few solutions. This will also be easier in the 1.0 branch. Closing for now unless you have other questions. |
Hey Guys!
First off - thank you for gatsbyJs! I joined a project where they are using gatsby and I got used to it pretty fast.
Now I was trying to make use of a sitemap. I already created a sitemap.xml file, that is stored in /pages. When I go to Google's Search Console and try to add the sitemap to my entity, I can't seem to find the right path.
I tried:
xyz.com/sitemap.xml
xyz.com/pages/sitemap.xml
xyz.com/public/sitemap.xml
I even created a "public" folder manually and added the sitemap to that folder which did not work either. Am I missing some permissions or settings somewhere?
Can you please help a not-so-much-of-a-developer-guy out?
Thank you
The text was updated successfully, but these errors were encountered: