Skip to content

Commit 642333a

Browse files
committed
feat: add rate limiter
Signed-off-by: Raúl Santos <[email protected]>
1 parent 0e1a3cf commit 642333a

File tree

8 files changed

+5061
-22778
lines changed

8 files changed

+5061
-22778
lines changed

frontend/nuxt.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import primevue from './setup/primevue';
88
import echarts from './setup/echarts';
99
import caching from './setup/caching';
1010
import sitemap from './setup/sitemap';
11+
import rateLimiter from './setup/rate-limiter';
1112

1213
const isProduction = process.env.NUXT_APP_ENV === 'production';
1314
const isDevelopment = process.env.NODE_ENV === 'development';
@@ -52,7 +53,7 @@ export default defineNuxtConfig({
5253
primevue,
5354
echarts,
5455
runtimeConfig: {
55-
// These are are only available on the server-side and can be overridden by the .env file
56+
// These are only available on the server-side and can be overridden by the .env file
5657
appEnv: process.env.APP_ENV,
5758
tinybirdBaseUrl: 'https://api.us-west-2.aws.tinybird.co',
5859
tinybirdToken: '',
@@ -78,6 +79,7 @@ export default defineNuxtConfig({
7879
cmDbPassword: 'example',
7980
cmDbDatabase: 'crowd-web',
8081
dataCopilotDefaultSegmentId: '',
82+
rateLimiter: rateLimiter,
8183
// These are also exposed on the client-side
8284
public: {
8385
apiBase: '/api',

frontend/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"@ai-sdk/amazon-bedrock": "^2.2.12",
2929
"@ai-sdk/openai": "^2.0.53",
3030
"@ai-sdk/vue": "^2.0.78",
31+
"@crowd/redis": "workspace:*",
3132
"@linuxfoundation/lfx-ui-core": "^0.0.20",
3233
"@modelcontextprotocol/sdk": "^1.20.2",
3334
"@nuxt/eslint": "^1.9.0",
@@ -39,6 +40,7 @@
3940
"@pinia/nuxt": "^0.11.2",
4041
"@popperjs/core": "^2.11.8",
4142
"@primevue/themes": "^4.4.1",
43+
"@redis/client": "^5.9.0",
4244
"@tanstack/vue-query": "^5.90.5",
4345
"@types/jsonwebtoken": "^9.0.10",
4446
"@vuelidate/core": "^2.0.3",

0 commit comments

Comments
 (0)