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
4 changes: 2 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:
- name: Install dependencies
run: bun install --frozen-lockfile

- name: Generate Prisma client
run: bun run prisma:generate
- name: Emit Prisma contract
run: bun run prisma:emit

- name: Type check
run: bun run typecheck
Expand Down
983 changes: 697 additions & 286 deletions bun.lock

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ services:
restart: unless-stopped
tty: true
build: .
command: sh -c "bunx prisma migrate deploy && bun .output/server/index.mjs"
command: sh -c "bunx prisma db migrate && bun .output/server/index.mjs"
environment:
NODE_ENV: production
SESSION_SECRET: ${SESSION_SECRET}
Expand Down Expand Up @@ -45,6 +45,5 @@ services:
volumes:
db:
driver: local

redis:
driver: local
20 changes: 11 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,37 +13,39 @@
"format:check": "oxfmt --check .",
"lint": "oxlint .",
"typecheck": "nuxt typecheck",
"check": "bun run prisma:generate && bun run lint && bun run format:check && bun run typecheck",
"prisma:generate": "prisma generate",
"prisma:migrate": "prisma migrate dev",
"prisma:deploy": "prisma migrate deploy",
"prisma:studio": "prisma studio"
"check": "bun run lint && bun run format:check && bun run typecheck",
"prisma:emit": "prisma contract emit",
"prisma:plan": "prisma migration plan",
"prisma:migrate": "prisma db migrate",
"prisma:update": "prisma db update",
"prisma:status": "prisma migration status"
},
"dependencies": {
"@nuxt/fonts": "0.14.0",
"@nuxt/image": "2.1.0",
"@prisma/adapter-pg": "7.10.0",
"@prisma/client": "7.10.0",
"@prisma/orm-postgres": "^8.0.0-rc.8",
"@tabler/icons-vue": "^3.46.0",
"@tailwindcss/postcss": "^4.3.3",
"@tailwindcss/vite": "^4.3.3",
"argon2": "^0.45.1",
"bcryptjs": "^3.0.3",
"ioredis": "^6.0.0",
"nuxt": "^4.5.2",
"pg": "^8.23.0",
"sharp": "^0.35.4",
"tailwindcss": "^4.3.3",
"temporal-polyfill": "^1.0.4",
"vue": "^3.5.41",
"vue-router": "^5.2.0",
"vue-sonner": "^2.0.9",
"zxcvbn": "^4.4.2"
},
"devDependencies": {
"@types/node": "^26.4.0",
"@types/node": "^26.4.1",
"@types/ws": "^8.18.1",
"oxfmt": "^0.65.0",
"oxlint": "^1.80.0",
"prisma": "7.10.0",
"prisma": "^8.0.0-rc.12",
"typescript": "^6.0.0",
"vue-tsc": "^3.0.0"
},
Expand Down
20 changes: 9 additions & 11 deletions prisma.config.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import 'dotenv/config';
import { defineConfig, env } from 'prisma/config';
import { defineConfig as definePostgresConfig } from '@prisma/orm-postgres/config';
import { definePrismaConfig } from 'prisma/config';

export default defineConfig({
schema: 'prisma/schema.prisma',

migrations: {
path: 'prisma/migrations',
},

datasource: {
url: env('DATABASE_URL'),
},
export default definePrismaConfig({
orm: definePostgresConfig({
contract: './prisma/contract.ts',
db: {
connection: process.env.DATABASE_URL!,
},
}),
Comment thread
coderabbitai[bot] marked this conversation as resolved.
});
1,743 changes: 1,743 additions & 0 deletions prisma/contract.d.ts

Large diffs are not rendered by default.

Loading
Loading