Skip to content

Commit

Permalink
fix: htmlFunction.call is not a function
Browse files Browse the repository at this point in the history
  • Loading branch information
zanmato committed Nov 28, 2024
1 parent c6a7f59 commit 8433e5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/fastify-vue/routing.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export async function createRoute ({ client, errorHandler, route }, scope, confi
const htmlPath = id.replace(/pages\/(.*?)\.vue$/, 'client/html/$1.html')
const htmlSource = readFileSync(join(config.vite.root, config.vite.build.outDir, htmlPath), 'utf8')
const htmlFunction = createHtmlFunction(htmlSource, scope, config)
handler = (_, reply) => htmlFunction.call(reply)
handler = (_, reply) => reply.html(htmlFunction)
}

scope.route({
Expand Down

0 comments on commit 8433e5c

Please sign in to comment.