feat: themes foundation + editors load improvements
This commit is contained in:
15
server/jobs/render-page.js
Normal file
15
server/jobs/render-page.js
Normal file
@@ -0,0 +1,15 @@
|
||||
require('../core/worker')
|
||||
|
||||
/* global WIKI */
|
||||
|
||||
module.exports = async (job) => {
|
||||
WIKI.logger.info(`Rendering page ${job.data.path}...`)
|
||||
|
||||
try {
|
||||
|
||||
WIKI.logger.info(`Rendering page ${job.data.path}: [ COMPLETED ]`)
|
||||
} catch (err) {
|
||||
WIKI.logger.error(`Rendering page ${job.data.path}: [ FAILED ]`)
|
||||
WIKI.logger.error(err.message)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user