// Import the Node path module
const path = require('path');
// Get the public folder path
const publicFolder = path.join(__dirname, 'public');
// Add the sitemap.xml file to the publicFolder
exports.onPostBuild = () => {
fs.copyFileSync(
path.join(__dirname, 'sitemap.xml'),
path.join(publicFolder, 'sitemap.xml')
);
};