Recommended way to run migration workflow
migrations.ts
file is the following:
npx convex deploy --cmd 'turbo run build && npx convex run migrations
wanna make sure I get the order right. Also I guess the --prod flag is not necessary if we have the right env variables set in vercel, and that way it'll work for other envs like staging as well
...Mobile app
Convex runtime does not support SecureRandom
crypto
, CryptoKey
, and SubtleCrypto
are available. I think I'm only using those APIs, however...
The following error is thrown from the dashboard when running my mutation....Spamming function calls on stream OpenAI responses
Seems like convex auth isn't setting user immediately
auth:store signUp Error with duplicate email
Zod .describe() causing issues with schema validation
npx convex dev
```
✖ Error: Unable to run schema validation on https://sensible-salmon-524.convex.cloud
[CONVEX] Error fetching POST https://sensible-salmon-524.convex.cloud/api/prepare_schema 400 Bad Request: Error: Hit an error while evaluating your schema:
[CONVEX] Uncaught TypeError: Cannot read properties of undefined (reading 'describe')...Need help with handling Convex Auth signIn errors in prod
Phone provider with Twilio example is returning an error when executing createAccount() method
Clerk Webhook for User Creation - is this really suitable?
[Convex Auth]: signIn doesn't set isAuthenticated to true immediately
signIn
doesn't seem to set isAuthenticated
immediately after the resolution of its promise.
For example, this snippet of our AuthProvider:
```
const { isAuthenticated, isLoading } = useConvexAuth();...Linking anon users to Google
POST /api/auth 404 ???
POST /api/auth 404 in 600ms
while clicking the GoogleSignInButton??...@convex-dev/auth isn't working with NextJs and Github provider
Cleanest way to handle optional filters
status
/orders
route should get all orders
/orders?status=pending
should get orders with the status of 'pending'
...Dependent queries not working with tanstack query
``` const { fetchStatus, data: ordersResponse, isError, isPending: isOrderPending, isSuccess } = useQuery({ ...convexQuery(api.orders.getOrdersByCartIds, { cartDocIds: cartDocIds ?? [], fetchProducts: true }),...
Help consuming an endpoint(for an internalAction) from App.tsx
ai API works differently.
How to wrap the database writer so that `ctx.db.patch` and `ctx.db.insert` run side effects