This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { sitemapBuilder as buildSitemap } from 'react-router-sitemap'; | |
import routes from '../routes'; | |
import path from 'path'; // add path which will be needed for file write | |
import fs from 'fs'; // import file system object | |
// use your website root address here. Optimally you can | |
// include dev and production enviorenments with variable | |
const hostname = 'http://localhost:3000'; | |
// define our destination folder and sitemap file name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"state": "Adamawa", | |
"alias": "adamawa", | |
"lgas": [ | |
"Demsa", | |
"Fufure", | |
"Ganye", | |
"Gayuk", | |
"Gombi", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
"Abia", | |
"Adamawa", | |
"Akwa Ibom", | |
"Anambra", | |
"Bauchi", | |
"Bayelsa", | |
"Benue", | |
"Borno", | |
"Cross River", |