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
9 changes: 9 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,12 @@ CACHE_TTL_DEFAULT="300"

# Enable/disable rate limiting (default: true)
RATE_LIMIT_ENABLED="true"

# -------------------------
# Stripe (Payments)
# -------------------------
# Get from https://dashboard.stripe.com/apikeys
STRIPE_SECRET_KEY=""

# Webhook secret - get from Stripe Dashboard > Webhooks > Your endpoint > Signing secret
STRIPE_WEBHOOK_SECRET=""
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,5 @@ migrations/
!.vscode/extensions.json
.idea
.claude/settings.local.json
packages/db/scripts/seed.ts
packages/db/scripts/seed2.ts
272 changes: 0 additions & 272 deletions nextstep.md

This file was deleted.

19 changes: 6 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
"chart.js": "^4.5.1",
"minimatch": "^10.1.1",
"postcss": "^8.5.6",
"next": "15.5.9",
"react": "^18.3.1",
"react-dom": "^18.3.1"
"next": "^16.0.0",
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
"devDependencies": {
"@query/eslint-config": "workspace:*",
Expand All @@ -44,20 +44,13 @@
"@trpc/server": "^11.8.0",
"@turbo/gen": "^2.1.3",
"@types/node": "^22.10.1",
"@types/react": "^18.3.1",
"@types/react-dom": "^18.3.1",
"@types/react": "^19.0.0",
"@types/react-dom": "^19.0.0",
"prettier": "^3.3.3",
"tsx": "^4.21.0",
"turbo": "^2.6.3",
"typescript": "^5.6.3",
"zod": "^3.23.8"
},
"prettier": "@query/prettier-config",
"pnpm": {
"overrides": {
"next": "15.5.9",
"react": "^18.3.1",
"react-dom": "^18.3.1"
}
}
"prettier": "@query/prettier-config"
}
2 changes: 1 addition & 1 deletion packages/api/.cache/tsbuildinfo.json

Large diffs are not rendered by default.

12 changes: 11 additions & 1 deletion packages/api/src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,18 @@ import { db } from "@query/db";
import type { FetchCreateContextFnOptions } from "@trpc/server/adapters/fetch";
import { cache } from "./middleware/cache";

type Session = {
user?: {
id?: string;
name?: string | null;
email?: string | null;
image?: string | null;
};
expires?: string;
} | null;

// Lazy import auth to avoid module resolution issues in standalone builds
let authModule: { auth: () => Promise<any> } | null = null;
let authModule: { auth: () => Promise<Session> } | null = null;

async function getAuth() {
if (authModule === null) {
Expand Down
Loading
Loading