Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion templates/app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand All @@ -26,3 +26,5 @@ module.exports = async function (fastify, opts) {
options: Object.assign({}, opts)
})
}

module.exports.options = options