Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions docs/plugins/openapi.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,21 @@ Additional OpenAPI reference for each endpoint

Scalar configuration, refers to [Scalar config](https://github.com/scalar/scalar/blob/main/documentation/configuration.md)

### Self-hosted Scalar bundle

Self-host the Scalar bundle and disable CDN Fonts.

Note: `cdn` is an Elysia OpenAPI plugin option (not part of Scalar’s own config); it overrides the URI to the Scalar bundle.

```typescript
openapi({
scalar: {
cdn: "/public/scalar-standalone.min.js", // plugin override for Scalar bundle URI (self-hosted)
withDefaultFonts: false, // disable Scalar’s default font CDN
},
})
```

## specPath

@default '/${path}/json'
Expand Down