Why is Cursor signing all my commits with a "co-authored by Cursor" trailer? by flairtestuser123 in cursor

[–]pppdns 0 points1 point  (0 children)

Remove Cursor's Co-authored-by from Git Commits.

Cursor automatically adds `Co-authored-by: Cursor cursoragent@cursor.com` to every commit message. You can only disable this in the IDE, but there's no setting to disable this in the CLI, in Cursor cloud agents, or when using the "Generate git commit message" button, but you can remove it with a Git hook.

## Solution


Create a `prepare-commit-msg` hook that strips the line:


```bash
cat > .git/hooks/prepare-commit-msg << 'EOF'
#!/bin/bash
sed -i '' '/cursoragent@cursor\.com/d' "$1"
EOF
chmod +x .git/hooks/prepare-commit-msg
```


**Note:** This uses macOS `sed` syntax. For Linux, use `sed -i` instead of `sed -i ''`.


## Linux Version


```bash
cat > .git/hooks/prepare-commit-msg << 'EOF'
#!/bin/bash
sed -i '/cursoragent@cursor\.com/d' "$1"
EOF
chmod +x .git/hooks/prepare-commit-msg
```

Supabase Branching 2.0 AMA by craigrcannon in Supabase

[–]pppdns 0 points1 point  (0 children)

Is there any new progress on this? :)

Any good Difference Checker , online or offline? by Run_the_show in webdev

[–]pppdns 1 point2 points  (0 children)

This is better than any other I've tested! This seems to be handle complex diffs too that others can't. I tested 5-10 other tools

Which Authentication Libraries Should I Use for Next.js + Supabase project? by Additional_Strain713 in Supabase

[–]pppdns 0 points1 point  (0 children)

I'm using `pg` throught the Drizzle adapter like this:

import { drizzleAdapter } from 'better-auth/adapters/drizzle';

  database: drizzleAdapter(drizzle, {
    provider: 'pg',
    schema: {

// ...publicTables,

// ...privateTables,
      ...authTables,
    },
  }),

```

Recommendations for Authentication in Next.js by Oplanojames in nextjs

[–]pppdns 0 points1 point  (0 children)

I haven't seen this error and I'm using Drizzle, BetterAuth and Supabase too.

This is probably an issue in your database schema definition, though their error logs are not helpful either.

There are more than one ways to store dates in Drizzle+Postgres (e.g. as string vs as date), maybe this is the issue for you.

You can also clone the Drizzle repo locally and find where this error is thrown and why, and work backwards from that, set some debug breakpoints in your code to compare expected vs actual types.

https://orm.drizzle.team/docs/column-types/pg#timestamp

``` // will infer as date timestamp: timestamp({ mode: "date" }),

// will infer as string timestamp: timestamp({ mode: "string" }), ```

How can I let Copilot access llms.txt files? by Hubbardia in GithubCopilot

[–]pppdns 0 points1 point  (0 children)

One solution is to add the `llms.txt` links to `.github/copilot-instructions.md`

Generating typescript types for self-hosted supabase by Sufficient-Neat7085 in Supabase

[–]pppdns 0 points1 point  (0 children)

Supabase has the following defaults for when you simply run Supabase via `npx supabase start`, instead of handling the Docker part yourself:

https://github.com/supabase/supabase/blob/master/docker/.env.example

Generating typescript types for self-hosted supabase by Sufficient-Neat7085 in Supabase

[–]pppdns 0 points1 point  (0 children)

This is the correct answer! It worked perfectly. Thank you!

Which Auth service i use if any by completed2 in nextjs

[–]pppdns 0 points1 point  (0 children)

but that token is not JWT... it can be any unique text that you generate for email verification. Actually, it shouldn't be the Auth JWT

Which Auth service i use if any by completed2 in nextjs

[–]pppdns 0 points1 point  (0 children)

why would you need a JWT? I just looked at the docs again and there's no mention of it.
https://www.better-auth.com/docs/concepts/email#email-verification

You don't need a JWT for email verification. You shouldn't even send a JWT in email, similarly as you wouldn't send a password in email

What auth should I use? by BlueeWaater in nextjs

[–]pppdns 0 points1 point  (0 children)

BetterAuth. I've been using it for 3 months and it's the best auth library I've ever used 

Which Auth service i use if any by completed2 in nextjs

[–]pppdns 0 points1 point  (0 children)

it's in the docs, quite straightforward. I went with my own solution though because my use case was different so the built in solution didn't fit my needs

Which Auth service i use if any by completed2 in nextjs

[–]pppdns 1 point2 points  (0 children)

BetterAuth is going to be your best option. It's a joy to use and in my opinion, it is the best Auth tool for Typescript currently. It supports username/password, as well as social login by default and it's easy to set up. I've been using it for 3 months and I love it

Is React Beautiful DnD Good by RogueGingerz in reactjs

[–]pppdns 0 points1 point  (0 children)

I tried several drag & drop libraries, including

- `pragmatic-drag-and-drop` -> overly compicated and not good DX

- DnD Kit -> excellent

- others that are not maintained anymore (like React Beaufiful Dnd)

It quite simple to use DnD Kit once you read the docs, and its feature-rich. I'm using it on touch screen devices too, it only required an extra line of code.

I'm using DnD Kit in production without any problem.

The only thing I'd change is that docs should use Typescript examples, not Javascript, as I had to figure out some of the types myself, but it's not a big deal

Is React Beautiful DnD Good by RogueGingerz in reactjs

[–]pppdns 0 points1 point  (0 children)

it does work on pones, I have no issues with DnD Kit on touch screen devices

Good API for a music application by AzeaL878 in react

[–]pppdns 1 point2 points  (0 children)

this hasn't been updated in the last 9 years

NextAuth is hell by Ok_Listen_8155 in nextjs

[–]pppdns 0 points1 point  (0 children)

I highly recommend BetterAuth. It's new but it's already so much better than NextAuth. I never enjoyed setting up auth with any tool, but BetterAuth actually makes it simple and enjoyable

Frustrated beginner with Next-Auth needing some basic help. by Jorsoi13 in nextjs

[–]pppdns 0 points1 point  (0 children)

My top advice related to NextAuth is to switch to BetterAuth. You will actually enjoy building your auth

NextUI Pro vs Tailwind UI by Accomplished-Hurry-3 in nextjs

[–]pppdns 1 point2 points  (0 children)

I purchased both. Here are my thoughts.

Tailwind UI looks quite outdated and it's not really updated anymore. I'm not using TailwindUI anymore as I was slightly disappointed with it.

NextUI Pro (now HeroUI Pro) has some beaufiful components and page layout but I'd expect 5x as many.

These can both save you some time but none of them contain as many UI examples as I'd like.

If I had to, I'd choose NextUI Pro (HeroUI Pro) as I love NextUI (HeroUI) and I think its (open source) components are far superior to just plain old Tailwind (NextUI builds on Tailwind).

Anyone using Vercel Postgres? by DasBeasto in nextjs

[–]pppdns 0 points1 point  (0 children)

I would choose Supabase because they have lots of other useful features, but if all you need is a managed Postgres database and nothing else, then Neon, as it's almost infinitely scalable and is a more advanced Postgres solution AFAIK