1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-06-27 18:05:41 -04:00
Go to file
google-labs-jules[bot] a744374d22 fix: Remove transaction from addCommentVote for Neon HTTP driver
The Neon HTTP database driver does not support transactions. This commit removes the `db.transaction` wrapper from the `addCommentVote` server action in `lib/server/comments.ts`.

Database operations within this function (checking for existing votes, creating/updating/deleting votes, and updating aggregate vote counts on the comment table) are now performed sequentially without transactional atomicity.

While this means that a failure in a later step won't roll back earlier steps, the risk of critical data inconsistency for this specific comment voting feature is considered low and an acceptable trade-off for compatibility with the database driver.
2025-05-27 15:24:27 +00:00
2025-05-02 22:04:26 -04:00
2025-04-04 11:29:28 -04:00
2025-05-02 22:04:26 -04:00
2025-05-21 16:56:54 -04:00
2025-05-19 17:58:03 -04:00
2025-05-14 09:49:55 -04:00
2022-01-04 22:19:28 -05:00
2025-05-14 11:16:17 -04:00
2021-12-30 08:18:41 -05:00
2025-05-02 22:04:26 -04:00
2025-05-22 09:05:22 -04:00
2025-05-14 09:49:55 -04:00
2025-05-02 22:04:26 -04:00
2025-05-14 09:49:55 -04:00
2025-05-14 09:49:55 -04:00
2025-05-19 17:58:03 -04:00
2021-12-30 08:18:41 -05:00
2025-05-02 22:04:26 -04:00
2025-05-14 09:49:55 -04:00
2025-05-08 10:07:40 -04:00
2025-05-02 22:04:26 -04:00

🏡  jarv.is

Vercel deployment Next.js version Licensed under CC-BY-4.0 GitHub repo size Dynamic JSON Badge

My humble abode on the World Wide Web, created and deployed using Next.js, Tailwind CSS, Neon Postgres, Drizzle, Better Auth, and more.

🕹️ Getting Started

Open in GitHub Codespaces

I highly recommend spinning up a Codespace with the button above to start inside of a preconfigured and tested environment. But you can also clone this repository locally, run pnpm install to pull down the necessary dependencies and pnpm dev to start the local server, and then open localhost:3000 in a browser. Pages will live-refresh when source files are changed.

Be sure to populate the required environment variables! Refer to lib/env.ts, which documents (and strictly type-checks) these variables. The included .env.example file should be copied and used as a template for a new local .env file, which the local next dev server will then ingest.

⚠️ Currently, there are a few assumptions sprinkled throughout the code that this repo will be deployed to Vercel and only Vercel. I'll correct this soon™ now that some escape hatches (namely OpenNext) actually exist...

📜 License

Site content is licensed under the CC-BY-4.0 license, which means that you can copy, redistribute, remix, transform, and build upon the content for any purpose as long as you give appropriate credit.

All other code in this repository is licensed under the MIT license.

Languages
MDX 54.1%
TypeScript 44.3%
CSS 1.1%
JavaScript 0.5%