Skip to content

Commit ca260f4

Browse files
committed
migrated to new prisma client, now works on alpine 🎉
1 parent ec7d841 commit ca260f4

File tree

40 files changed

+909
-629
lines changed

40 files changed

+909
-629
lines changed

‎.eslintignore‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules
2+
build
3+
.next
4+
out
5+
src/generated

‎.gitignore‎

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,47 @@
11
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2-
/.idea
32

43
# dependencies
54
/node_modules
65
/.pnp
7-
.pnp.js
6+
.pnp.*
7+
.yarn/*
8+
!.yarn/patches
9+
!.yarn/plugins
10+
!.yarn/releases
11+
!.yarn/versions
812

913
# testing
1014
/coverage
1115

16+
# next.js
17+
/.next/
18+
/out/
19+
1220
# production
1321
/build
14-
.firebase
1522

1623
# misc
1724
.DS_Store
18-
.env.local
19-
.env.development.local
20-
.env.test.local
21-
.env.production.local
25+
*.pem
2226

27+
# debug
2328
npm-debug.log*
2429
yarn-debug.log*
2530
yarn-error.log*
31+
.pnpm-debug.log*
2632

27-
# npm's lock file
28-
package-lock.json
33+
# env files (can opt-in for committing if needed)
34+
.env*
2935

30-
.next
31-
bundles
36+
# vercel
37+
.vercel
3238

33-
.env
39+
# typescript
40+
*.tsbuildinfo
41+
next-env.d.ts
3442

43+
# Another misc
3544
test-results
45+
46+
# Prisma
47+
src/prisma

‎.npmrc‎

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

‎.nvmrc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
lts/jod
1+
lts/krypton

‎Dockerfile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# check=skip=SecretsUsedInArgOrEnv
22

3-
FROM node:22-trixie AS builder
3+
FROM node:24-alpine AS builder
44

55
ENV DOCKER_BUILD=1
66
ENV NEXT_PUBLIC_REALTIME_URL=https://rtss.crackncode.org
@@ -37,7 +37,7 @@ ENV DATABASE_URL=${DATABASE_URL}
3737

3838
RUN pnpm build
3939

40-
FROM node:22-trixie AS runner
40+
FROM node:24-alpine AS runner
4141

4242
WORKDIR /app
4343

‎package.json‎

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "programming.in.th",
33
"private": true,
4-
"packageManager": "pnpm@10.17.1",
4+
"packageManager": "pnpm@10.21.0",
55
"engines": {
6-
"node": "^22.12"
6+
"node": "^24.11"
77
},
88
"lint-staged": {
99
"*.{json,md,yaml,css,scss}": [
@@ -26,6 +26,7 @@
2626
"prebuild": "prisma generate",
2727
"predev": "prisma generate",
2828
"prepare": "husky",
29+
"check-types": "next typegen && tsc --noEmit",
2930
"test": "vitest run",
3031
"test:coverage": "vitest run --coverage",
3132
"test:e2e": "playwright test"
@@ -38,17 +39,17 @@
3839
"@codemirror/lang-python": "6.2.1",
3940
"@codemirror/lang-rust": "6.0.2",
4041
"@codemirror/language": "6.11.3",
41-
"@codemirror/legacy-modes": "6.5.1",
42-
"@codemirror/view": "6.38.4",
42+
"@codemirror/legacy-modes": "6.5.2",
43+
"@codemirror/view": "6.38.6",
4344
"@dnd-kit/core": "6.3.1",
4445
"@dnd-kit/modifiers": "9.0.0",
4546
"@dnd-kit/sortable": "10.0.0",
4647
"@dnd-kit/utilities": "3.2.2",
4748
"@headlessui/react": "2.2.9",
4849
"@heroicons/react": "2.2.0",
4950
"@next-auth/prisma-adapter": "1.0.7",
50-
"@next/bundle-analyzer": "15.5.4",
51-
"@prisma/client": "5.17.0",
51+
"@next/bundle-analyzer": "15.5.5",
52+
"@prisma/client": "6.17.1",
5253
"@supabase/realtime-js": "2.15.6",
5354
"@tanstack/react-table": "8.21.3",
5455
"@uiw/codemirror-theme-dracula": "4.25.2",
@@ -61,19 +62,19 @@
6162
"csstype": "3.1.3",
6263
"dayjs": "1.11.18",
6364
"fuse.js": "7.1.0",
64-
"katex": "0.16.22",
65-
"motion": "12.23.22",
66-
"next": "15.5.4",
65+
"katex": "0.16.25",
66+
"motion": "12.23.24",
67+
"next": "15.5.5",
6768
"next-auth": "4.24.11",
6869
"next-mdx-remote": "5.0.0",
6970
"next-themes": "0.4.6",
7071
"prism-react-renderer": "1.3.5",
7172
"prismjs": "1.30.0",
72-
"react": "19.1.1",
73+
"react": "19.2.0",
7374
"react-countup": "6.5.3",
74-
"react-dom": "19.1.1",
75+
"react-dom": "19.2.0",
7576
"react-dropzone": "14.3.8",
76-
"react-hook-form": "7.63.0",
77+
"react-hook-form": "7.65.0",
7778
"react-hot-toast": "2.6.0",
7879
"react-infinite-scroll-component": "6.1.0",
7980
"react-table": "7.8.0",
@@ -86,17 +87,17 @@
8687
"server-only": "0.0.1",
8788
"sharp": "0.34.4",
8889
"swr": "2.3.6",
89-
"zod": "4.1.11"
90+
"zod": "4.1.12"
9091
},
9192
"devDependencies": {
9293
"@octokit/types": "15.0.0",
93-
"@playwright/test": "1.55.1",
94+
"@playwright/test": "1.56.0",
9495
"@tailwindcss/typography": "0.5.19",
95-
"@testing-library/jest-dom": "6.8.0",
96+
"@testing-library/jest-dom": "6.9.1",
9697
"@testing-library/react": "16.3.0",
9798
"@types/node": "22.18.6",
98-
"@types/react": "19.1.15",
99-
"@types/react-dom": "19.1.9",
99+
"@types/react": "19.2.2",
100+
"@types/react-dom": "19.2.2",
100101
"@types/react-table": "7.7.20",
101102
"@typescript-eslint/eslint-plugin": "7.16.1",
102103
"@typescript-eslint/parser": "7.16.1",
@@ -105,19 +106,19 @@
105106
"autoprefixer": "10.4.21",
106107
"dotenv-cli": "10.0.0",
107108
"eslint": "8.57.0",
108-
"eslint-config-next": "15.5.4",
109+
"eslint-config-next": "15.5.5",
109110
"eslint-config-prettier": "9.1.0",
110111
"eslint-plugin-import": "2.32.0",
111112
"eslint-plugin-prettier": "5.5.4",
112113
"eslint-plugin-react": "7.37.5",
113114
"eslint-plugin-unused-imports": "3.2.0",
114115
"husky": "9.1.7",
115116
"jsdom": "27.0.0",
116-
"lint-staged": "16.2.3",
117+
"lint-staged": "16.2.4",
117118
"postcss": "8.5.6",
118119
"prettier": "3.6.2",
119-
"prettier-plugin-tailwindcss": "0.6.5",
120-
"prisma": "5.17.0",
120+
"prettier-plugin-tailwindcss": "0.6.14",
121+
"prisma": "6.17.1",
121122
"prisma-dbml-generator": "0.12.0",
122123
"sass": "1.93.2",
123124
"tailwindcss": "3.4.5",

0 commit comments

Comments
 (0)