Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,21 @@ export const adapter = new Adapter({
<% if (includeComments) { -%>
// List of supported endpoints
<% } -%><%= ' ' %> endpoints: [<%= endpointNames %>],
<% if (Object.values(endpoints).some(endpoint => endpoint.inputTransports.some(({ type }) => type === 'http'))) { -%>
<% if (includeComments) { -%>
// Rate limit otherwise we send requests as fast as possible without delay.
// You should adjust this based on what the data provider can tolerate and
// how fresh you need your data to be. The rate limit is global for all
// requests going through transport.dependencies.requester, which includes
// the requests prepared in HttpTransport.prepareRequests.
<% } -%><%= ' ' %> rateLimiting: {
tiers: {
default: {
rateLimit1m: 6,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe have a comment here say change this value to fit DP

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have expanded the comment.

},
},
},
<% } -%>
})

export const server = (): Promise<ServerInstance | undefined> => expose(adapter)
Loading