Skip to content

Add @zfig/fastify and @zfig/express as syntactic sugar for @zfig/bootstrap #33

@rstagi

Description

@rstagi

They implement it as a fastify or expreess servers already. DevX would be something like:

import { bootstrap } from '@zfig/fastify';

export default bootstrap(
  configSchema,
  { ...options... },
  async (fastify) => { // instead of `config` we already have `fastify` with `fastify.config` if needed
    // ... configure fastify ...
    // ... no need to return fastify ...
  },
);

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions