Skip to content

Commit a02693c

Browse files
authored
meow
Refactor/routes
2 parents 46a1e66 + d9af235 commit a02693c

File tree

42 files changed

+913
-652
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+913
-652
lines changed

.env.example

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,12 @@ CACHE_TTL_DEFAULT="300"
8181

8282
# Enable/disable rate limiting (default: true)
8383
RATE_LIMIT_ENABLED="true"
84+
85+
# -------------------------
86+
# Stripe (Payments)
87+
# -------------------------
88+
# Get from https://dashboard.stripe.com/apikeys
89+
STRIPE_SECRET_KEY=""
90+
91+
# Webhook secret - get from Stripe Dashboard > Webhooks > Your endpoint > Signing secret
92+
STRIPE_WEBHOOK_SECRET=""

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,5 @@ migrations/
5252
!.vscode/extensions.json
5353
.idea
5454
.claude/settings.local.json
55+
packages/db/scripts/seed.ts
56+
packages/db/scripts/seed2.ts

nextstep.md

Lines changed: 0 additions & 272 deletions
This file was deleted.

package.json

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
"chart.js": "^4.5.1",
2929
"minimatch": "^10.1.1",
3030
"postcss": "^8.5.6",
31-
"next": "15.5.9",
32-
"react": "^18.3.1",
33-
"react-dom": "^18.3.1"
31+
"next": "^16.0.0",
32+
"react": "^19.0.0",
33+
"react-dom": "^19.0.0"
3434
},
3535
"devDependencies": {
3636
"@query/eslint-config": "workspace:*",
@@ -44,20 +44,13 @@
4444
"@trpc/server": "^11.8.0",
4545
"@turbo/gen": "^2.1.3",
4646
"@types/node": "^22.10.1",
47-
"@types/react": "^18.3.1",
48-
"@types/react-dom": "^18.3.1",
47+
"@types/react": "^19.0.0",
48+
"@types/react-dom": "^19.0.0",
4949
"prettier": "^3.3.3",
5050
"tsx": "^4.21.0",
5151
"turbo": "^2.6.3",
5252
"typescript": "^5.6.3",
5353
"zod": "^3.23.8"
5454
},
55-
"prettier": "@query/prettier-config",
56-
"pnpm": {
57-
"overrides": {
58-
"next": "15.5.9",
59-
"react": "^18.3.1",
60-
"react-dom": "^18.3.1"
61-
}
62-
}
55+
"prettier": "@query/prettier-config"
6356
}

packages/api/.cache/tsbuildinfo.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

packages/api/src/context.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,18 @@ import { db } from "@query/db";
22
import type { FetchCreateContextFnOptions } from "@trpc/server/adapters/fetch";
33
import { cache } from "./middleware/cache";
44

5+
type Session = {
6+
user?: {
7+
id?: string;
8+
name?: string | null;
9+
email?: string | null;
10+
image?: string | null;
11+
};
12+
expires?: string;
13+
} | null;
14+
515
// Lazy import auth to avoid module resolution issues in standalone builds
6-
let authModule: { auth: () => Promise<any> } | null = null;
16+
let authModule: { auth: () => Promise<Session> } | null = null;
717

818
async function getAuth() {
919
if (authModule === null) {

0 commit comments

Comments
 (0)