Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ VITE_CONVEX_SITE_URL=http://localhost:3210
# VITE_POSTHOG_HOST=https://us.i.posthog.com

# ==============================================================================
# OPTIONAL: Rate Limiting Configuration
# OPTIONAL: Redis (Resumable Streams)
# ==============================================================================
# Rate limiting mode: "redis" | "memory" (auto-detects if not set)
# RATE_LIMIT_MODE=memory
# Local Redis (recommended for resumable streams in dev)
# REDIS_URL=redis://localhost:6379

# Upstash Redis (for distributed rate limiting in production)
# Upstash Redis (for resumable streams in production)
# Get credentials from: https://console.upstash.com/redis
# UPSTASH_REDIS_REST_URL=https://your-redis.upstash.io
# UPSTASH_REDIS_REST_TOKEN=your_token_here
Expand Down
2 changes: 2 additions & 0 deletions apps/server/convex/_generated/api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/

import type * as auth from "../auth.js";
import type * as backgroundStream from "../backgroundStream.js";
import type * as chats from "../chats.js";
import type * as config_constants from "../config/constants.js";
import type * as crons from "../crons.js";
Expand Down Expand Up @@ -40,6 +41,7 @@ import type {

declare const fullApi: ApiFromModules<{
auth: typeof auth;
backgroundStream: typeof backgroundStream;
chats: typeof chats;
"config/constants": typeof config_constants;
crons: typeof crons;
Expand Down
4 changes: 2 additions & 2 deletions apps/server/convex/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const createAuth = (
oAuthProxy({
productionURL: PRODUCTION_CONVEX_SITE_URL,
currentURL: convexSiteUrl,
})
}) as unknown as typeof plugins[number]
);
}

Expand Down Expand Up @@ -110,6 +110,6 @@ export const createAuth = (
export const getCurrentUser = query({
args: {},
handler: async (ctx) => {
return authComponent.getAuthUser(ctx);
return authComponent.getAuthUser(ctx as unknown as GenericCtx<DataModel>);
},
});
Loading
Loading