File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ const cheerio = require("cheerio");
44
55module . exports . register = function ( { config } ) {
66 this . on ( "beforePublish" , ( { siteCatalog, contentCatalog, playbook } ) => {
7+ const startTime = Date . now ( ) ; // Start the timer
8+
79 try {
810 // Find the changelog page
911 const page = contentCatalog . findBy ( {
@@ -104,7 +106,12 @@ module.exports.register = function ({ config }) {
104106 contents : Buffer . from ( rss ) ,
105107 out : { path : config . outputFile } ,
106108 } ) ;
107- console . log ( `RSS feed generated at ${ config . outputFile } ` ) ;
109+
110+ const endTime = Date . now ( ) ; // End the timer
111+ const duration = endTime - startTime ; // Calculate the duration
112+ console . log (
113+ `RSS feed generated at ${ config . outputFile } in ${ duration } ms`
114+ ) ;
108115 } catch ( error ) {
109116 // Catch any errors to allow the build to continue
110117 console . error ( "Error generating RSS feed:" , error ) ;
You can’t perform that action at this time.
0 commit comments