We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5d71c0 commit 563d443Copy full SHA for 563d443
scripts/generator-adapter/generators/app/templates/src/index.ts.ejs
@@ -16,6 +16,17 @@ export const adapter = new Adapter({
16
<% if (includeComments) { -%>
17
// List of supported endpoints
18
<% } -%><%= ' ' %> endpoints: [<%= endpointNames %>],
19
+<% if (Object.values(endpoints).some(endpoint => endpoint.inputTransports.some(({ type }) => type === 'http'))) { -%>
20
+<% if (includeComments) { -%>
21
+ // Rate limit otherwise we send requests as fast as possible without delay
22
+<% } -%><%= ' ' %> rateLimiting: {
23
+ tiers: {
24
+ default: {
25
+ rateLimit1m: 6,
26
+ },
27
28
29
+<% } -%>
30
})
31
32
export const server = (): Promise<ServerInstance | undefined> => expose(adapter)
0 commit comments