File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed
packages/functions/src/function Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -15,17 +15,29 @@ interface RateLimitConfig {
15
15
16
16
interface BaseConfig {
17
17
/**
18
- * Configures the function to serve any static files that match the request
19
- * URL and render the function only if no matching files exist.
18
+ * Defines metadata about the framework or extension that has generated the
19
+ * function, if applicable. Typically contains the nane and the version.
20
+ * Should not be used for functions authored by users.
20
21
*/
21
- preferStatic ?: boolean
22
+ generator ?: string
22
23
23
24
/**
24
25
* Limits the HTTP methods for which the function will run. If not set, the
25
26
* function will run for all supported methods.
26
27
*/
27
28
method ?: HTTPMethod | HTTPMethod [ ]
28
29
30
+ /**
31
+ * Configures the function to serve any static files that match the request
32
+ * URL and render the function only if no matching files exist.
33
+ */
34
+ preferStatic ?: boolean
35
+
36
+ /**
37
+ * Set rate-limiting rules for this function.
38
+ *
39
+ * {@link } https://ntl.fyi/rate-limiting-code
40
+ */
29
41
rateLimit ?: RateLimitConfig
30
42
}
31
43
You can’t perform that action at this time.
0 commit comments