'use strict'12process.env.NODE_ENV = 'production'34const fastify = require('fastify')()5const path = require('node:path')67module.exports = function ({ engine, route, options = {}, pluginOptions }) {8fastify.register(require('../index'), {9engine,10options,11root: path.join(__dirname, '../templates'),12...pluginOptions13})1415fastify.get('/', route)1617fastify.listen({ port: 3000 }, err => {18if (err) throw err19console.log(`server listening on ${fastify.server.address().port}`)20})2122return fastify23}242526