Web API for Oblique Strategies.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
218 B

  1. import fastify from 'fastify';
  2. export type CreateServerArgs = {
  3. env?: string
  4. }
  5. export const createServer = (args = { env: process.env.NODE_ENV } as CreateServerArgs) => fastify({
  6. logger: args.env !== 'test',
  7. });