blomqma / next-rest-framework

Type-safe, self-documenting APIs for Next.js
https://next-rest-framework.vercel.app
Other
136 stars 18 forks source link

Add ability to change from next-rest-framework logo #85

Closed SaadBazaz closed 10 months ago

SaadBazaz commented 10 months ago

Can't find the option in config.

Screenshot 2023-10-19 at 00 43 56
blomqma commented 10 months ago

The logo can be changed with the docsConfig option in your docs handler in the following way:

import { docsRouteHandler } from 'next-rest-framework';

export const GET = docsRouteHandler({
  ...
  docsConfig: {
    logoUrl: '<your logo url>'
  }
});

This is also documented in the Docs config section.

SaadBazaz commented 10 months ago

Awesome!