diff --git a/templates/app/app.js b/templates/app/app.js index 7c3927f0..0dd94669 100644 --- a/templates/app/app.js +++ b/templates/app/app.js @@ -4,7 +4,7 @@ const path = require('path') const AutoLoad = require('@fastify/autoload') // Pass --options via CLI arguments in command to enable these options. -module.exports.options = {} +const options = {} module.exports = async function (fastify, opts) { // Place here your custom code! @@ -26,3 +26,5 @@ module.exports = async function (fastify, opts) { options: Object.assign({}, opts) }) } + +module.exports.options = options