Add sitemap.xml generation during build #21
No reviewers
Labels
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: D-Net/openaire-graph-docs#21
Loading…
Reference in New Issue
No description provided.
Delete Branch "Add_sitemap_generation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds plugin for generating sitemap.xml during build for better SEO.
Looks fine to me, just a few questions:
sitemap.xml
file under the build directory. However, I could not find a way to access it through the web browser. Shouldn't it be exposed under the root? e.g. when running the site usingnpm run start
, shouldnt' it be exposed underhttp://localhost:3000/sitemap.xml
?Agree
From the docs of the plugin here, the sitemap.xml is generated in the build output as you've said. So, you can see it when serving the build folder with a web server and not with
npm run start
which is intended for development.You can see the generated sitemap.xml here: http://snf-23385.ok-kno.grnetcloud.net/sitemap.xml