Rane
Rane
CCConvex Community
Created by Rane on 1/1/2025 in #support-community
Convex Auth in production
Hi everyone, I’m deploying my Vite React app to Railway from a GitHub repo with Convex, and I’ve run into an issue. My build script works fine with:
"build": "tsc -b && vite build && npx convex deploy"
However, when I add Convex Auth initialization for production:
"build": "tsc -b && vite build && npx convex deploy && npx @convex-dev/auth --prod"
the deployment fails with the following error:
! No source control detected. We strongly recommend committing the current state of your code before proceeding. ... ERROR: failed to solve: process "/bin/bash -ol pipefail -c tsc -b && npx convex deploy && vite build && npx @convex-dev/auth --prod" did not complete successfully: exit code: 130
My current scripts:
"scripts": { "dev": "vite", "build": "tsc -b && vite build && npx convex deploy && npx @convex-dev/auth --prod", "lint": "eslint .", "preview": "vite preview" }
Is this the right way to initialize Convex Auth during production deployment? If not, what would be the recommended approach to ensure the @convex-dev/auth setup runs correctly for production? Thanks in advance for your help!
8 replies
CCConvex Community
Created by Rane on 12/26/2024 in #support-community
How to retrieve remaining rate limits from Convex's rateLimiter?
Hi! I'm trying to figure out how to get the remaining number of requests allowed with the rateLimiter component. When I use the rateLimiter.limit call, it only tells me whether the limit is OK (ok/retryAfter), but it doesn’t provide how many requests are left. I noticed that the rateLimiter component has a rateLimits table, which seems to contain the rate limit data. However, when I try to use a query to read this table, I can only access the data from the app component and not the rateLimiter component. Is there a way to directly query the rateLimiter component’s rateLimits table? Or is there another way to get the remaining request count from rateLimiter.limit? Thanks in advance for your help!
9 replies
CCConvex Community
Created by Rane on 12/15/2024 in #support-community
Convex with Vue/Nuxt
Hi everyone! Has anyone here used Convex with Vue.js or Nuxt.js? If so, I’d love to hear about your experiences and best practices! Also, is there any official support for Vue.js coming from Convex, similar to the @convex-dev/react library for React? Or any guidance on how to best leverage Convex’s features in Vue apps, especially for managing real-time updates? Any tips or experiences would be greatly appreciated. Thanks in advance!
7 replies