|
@@ -59,7 +59,7 @@ export const defaultConfig: IApiRateLimitEndpointMap = {
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
const isDev = process.env.NODE_ENV === 'development';
|
|
const isDev = process.env.NODE_ENV === 'development';
|
|
|
-const defaultConfigWithRegExpForDev = isDev ? {
|
|
|
|
|
|
|
+const defaultConfigWithRegExpForDev: IApiRateLimitEndpointMap = isDev ? {
|
|
|
'/__nextjs_original-stack-frame': {
|
|
'/__nextjs_original-stack-frame': {
|
|
|
method: 'GET',
|
|
method: 'GET',
|
|
|
maxRequests: Infinity,
|
|
maxRequests: Infinity,
|
|
@@ -67,7 +67,7 @@ const defaultConfigWithRegExpForDev = isDev ? {
|
|
|
} : {};
|
|
} : {};
|
|
|
|
|
|
|
|
// default config with reg exp
|
|
// default config with reg exp
|
|
|
-export const defaultConfigWithRegExp = {
|
|
|
|
|
|
|
+export const defaultConfigWithRegExp: IApiRateLimitEndpointMap = {
|
|
|
...defaultConfigWithRegExpForDev,
|
|
...defaultConfigWithRegExpForDev,
|
|
|
|
|
|
|
|
'/forgot-password/.*': {
|
|
'/forgot-password/.*': {
|