Skip to content

Commit a3848bd

Browse files
committed
fix: remove default fastify opts
1 parent f491f89 commit a3848bd

3 files changed

Lines changed: 4 additions & 11 deletions

File tree

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@athenna/http",
3-
"version": "5.53.0",
3+
"version": "5.54.0",
44
"description": "The Athenna Http server. Built on top of fastify.",
55
"license": "MIT",
66
"author": "João Lenon <lenon@athenna.io>",

src/providers/HttpServerProvider.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,13 @@
77
* file that was distributed with this source code.
88
*/
99

10-
import { Options } from '@athenna/common'
1110
import { ServiceProvider } from '@athenna/ioc'
1211
import { ServerImpl } from '#src/server/ServerImpl'
1312
import type { FastifyServerOptions } from 'fastify'
1413

1514
export class HttpServerProvider extends ServiceProvider {
1615
public register() {
17-
const fastifyOptions = Options.create(Config.get<FastifyServerOptions>('http.fastify'), {
18-
ajv: {
19-
customOptions: {
20-
coerceTypes: false
21-
}
22-
}
23-
})
16+
const fastifyOptions = Config.get<FastifyServerOptions>('http.fastify')
2417

2518
this.container.instance('Athenna/Core/HttpServer', new ServerImpl(fastifyOptions))
2619
}

0 commit comments

Comments
 (0)