Skip to content

Commit

Permalink
fix: @fastify/accepts plugin in reconciliation server (#1474)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddeboer authored Dec 3, 2024
1 parent 546a4fb commit 95f778c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/network-of-terms-reconciliation/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export async function server(
const server = fastify({logger, trustProxy: config.TRUST_PROXY as boolean});
server.register(fastifyCors);
server.register(formBodyPlugin, {parser});
server.register(fastifyAccepts);
server.register(fastifyAccepts, {decorateReply: true});
server.decorateRequest('root', '');
server.addHook('onRequest', (request, reply, done) => {
request.root = request.protocol + '://' + request.hostname;
Expand Down

0 comments on commit 95f778c

Please sign in to comment.