Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

Commit

Permalink
override default fastify options.. can't believe it was not there alr…
Browse files Browse the repository at this point in the history
…eady.
  • Loading branch information
ildella committed Nov 29, 2023
1 parent 5f2e9d9 commit 1212950
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion http/fastify-app.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const fastify = require('fastify')

module.exports = () => fastify({
module.exports = options => fastify({
// keepAliveTimeout: 5000,
// connectionTimeout: 5000,
// requestTimeout: 5000,
Expand All @@ -9,4 +9,5 @@ module.exports = () => fastify({
ignoreTrailingSlash: true,
disableRequestLogging: true,
logger: false,
...options,
})
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "moar-js",
"version": "1.12.1",
"version": "1.12.2",
"description": "Simple JavaScript files I use across projects",
"author": {
"name": "Daniele Dellafiore"
Expand Down

0 comments on commit 1212950

Please sign in to comment.