Skip to content

Commit 1693cf5

Browse files
committed
revert: update database client to use pg Pool and drizzle-orm/node-postgres instead of postgres (regrets for using postgres.js)
1 parent 8259dfe commit 1693cf5

5 files changed

Lines changed: 34 additions & 809 deletions

File tree

.dockerignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ node_modules
3535
.env.test*
3636
.env.production*
3737
docker-compose*.yml
38+
!entrypoint.sh
3839
example.env
3940

4041
# OS / editor trash
@@ -49,7 +50,6 @@ TODO.md
4950
docs
5051
extension
5152
Uploads
52-
docker
5353
.vscode
5454
*.tsbuildinfo
5555
*.swp

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ RUN apk add --no-cache \
3333

3434
# Just install drizzle-kit (and any runtime peer deps needed to run migrations)
3535
RUN corepack enable && corepack prepare pnpm@latest --activate \
36-
&& pnpm add --prod drizzle-kit drizzle-orm postgres
36+
&& pnpm add --prod drizzle-kit drizzle-orm pg
3737

3838
# Copy Next.js standalone/server output and static assets from the build stage
3939
COPY --from=builder /app/.next/standalone ./

package.json

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
"@aws-sdk/client-s3": "^3.968.0",
5252
"@better-auth/core": "^1.4.18",
5353
"@better-auth/passkey": "^1.4.11",
54-
"@ffmpeg/ffmpeg": "^0.12.15",
5554
"@hookform/resolvers": "^5.2.2",
5655
"@radix-ui/react-accordion": "^1.2.12",
5756
"@radix-ui/react-alert-dialog": "^1.1.15",
@@ -83,54 +82,39 @@
8382
"@tabler/icons-react": "^3.36.1",
8483
"archiver": "^7.0.1",
8584
"argon2": "^0.44.0",
86-
"base64url": "^3.0.1",
87-
"bcryptjs": "^3.0.3",
8885
"better-auth": "^1.4.11",
8986
"class-variance-authority": "^0.7.1",
9087
"clsx": "^2.1.1",
9188
"cmdk": "^1.1.1",
9289
"conventional-changelog": "^7.1.1",
9390
"cron": "^4.4.0",
9491
"date-fns": "^4.1.0",
95-
"dotenv": "^17.2.3",
9692
"drizzle-orm": "^0.45.1",
9793
"embla-carousel-react": "^8.6.0",
98-
"emoji-picker-react": "^4.16.1",
9994
"ffmpeg-static": "^5.3.0",
10095
"file-type": "^21.3.0",
101-
"graphql": "^16.9.0",
102-
"graphql-yoga": "^5.10.0",
103-
"hast-util-sanitize": "^5.0.2",
10496
"highlight.js": "^11.11.1",
10597
"hls.js": "^1.5.18",
10698
"input-otp": "^1.4.2",
107-
"lucide-react": "^0.562.0",
10899
"motion": "^12.25.0",
109100
"nanoid": "^5.1.6",
110101
"next": "^16.1.6",
111102
"next-themes": "^0.4.6",
112103
"nodemailer": "^7.0.12",
113-
"otplib": "^13.0.2",
114-
"postgres": "^3.4.8",
104+
"pg": "^8.18.0",
115105
"posthog-js": "^1.318.1",
116106
"qrcode": "^1.5.4",
117107
"react": "19.2.3",
118108
"react-day-picker": "^9.13.0",
119109
"react-dom": "19.2.3",
120110
"react-dropzone": "^14.3.8",
121111
"react-hook-form": "^7.71.0",
122-
"react-icons": "^5.5.0",
123112
"react-markdown": "^10.1.0",
124113
"react-qr-code": "^2.0.18",
125-
"react-resizable-panels": "^4.4.0",
126114
"recharts": "3.6.0",
127-
"rehype-raw": "^7.0.0",
128-
"rehype-sanitize": "^6.0.0",
129-
"remark-gfm": "^4.0.1",
130115
"sharp": "^0.34.5",
131116
"sonner": "^2.0.7",
132117
"tailwind-merge": "^3.4.0",
133-
"uuid": "^13.0.0",
134118
"vaul": "^1.1.2",
135119
"web-push": "^3.6.7",
136120
"yet-another-react-lightbox": "^3.28.0",
@@ -143,6 +127,7 @@
143127
"@types/archiver": "^6.0.3",
144128
"@types/node": "^25.0.6",
145129
"@types/nodemailer": "^7.0.5",
130+
"@types/pg": "^8.16.0",
146131
"@types/qrcode": "^1.5.6",
147132
"@types/react": "^19.2.8",
148133
"@types/react-dom": "^19.2.3",

0 commit comments

Comments
 (0)