u/Armauer

Is it a good idea to use Next.js API routes for authentication or is it better to have a separate backend for it?
▲ 2 r/nextjs+1 crossposts

Is it a good idea to use Next.js API routes for authentication or is it better to have a separate backend for it?

Using Better Auth as an example, I didn't find a direct recommendation on this in their docs. They have integration guides for both Next.js API routes and Fastify/Express backends.

I assume the separate-backend option might scale better and is preferable when you have more than one client (like web + mobile). I haven't really had the chance to use Next.js API routes for auth, since I've always done it separately - either in a monorepo or without one. Maybe someone who's used that setup could share more about their experience?

I'm not asking because I'm building a specific app - I have an open-source project that's a dashboard starter, and I'm wondering whether I picked the right architectural approach for it. In case anyone's curious, here's the link >https://github.com/nellavio/nellavio!< The repo link is inside a spoiler, in hopes that this post won't be taken as an ad for the GitHub project - that's not my goal here. I've pretty much decided to migrate this project from GraphQL to REST, and now I'm also wondering whether I should ditch the separate backend repo entirely and move everything into Next.js as a single app.

u/Armauer — 3 days ago

Struggling to decide whether I should start a blog or not. 5 YOE

It's been a year since I started thinking about it and still haven't made the decision. Maybe someone here could help me with it. I never had personal blog.

On my blog I would have 2 types of articles:

  • 80% - Update notes from my personal projects (public websites/apps). Mostly focused on decision making, not the technical stuff. Screenshots with new functionalities, problems that I encountered etc.
  • 20% - Technical articles about programming, for experienced developers rather than beginners.

What would be my goal:

  • To have a personal space where I can vent a little and clear my head
  • To interact with people, responding to comments, engaging in discussions etc. Perhaps to build a small community

What would not be my goal, or at least not a primary goal

  • To earn money on it
  • To use it to find new job

The main question - do you think somebody would be interested in reading such a blog? When I think about it, I feel like the "80%" part would be something that nobody really cares about, and the "20%" part is something nobody needs because the internet is already full of it.

In the spoiler below I put two links, first one is my personal website that would have blog part on "/blog" url if I commited to it, and the second one is one of my projects that I would write about

>https://matt765.dev/!<

>https://atomanimation.com/!<

reddit.com
u/Armauer — 12 days ago

Struggling to make a decision if I should start a blog or not

Hello. It's been a year since I started thinking about it and still haven't made the decision. Maybe someone here could help me with it. I never had personal blog.

I work as a programmer, I have 5 years of coding experience.

On my blog I would have 2 types of articles:

  • 80% - Update notes from my personal projects (public websites/apps). Mostly focused on decision making, not the technical stuff. Screenshots with new functionalities, problems that I encountered etc.
  • 20% - Technical articles about programming, for experienced developers rather than beginners.

What would be my goal:

  • To have a personal space where I can vent a little and clear my head
  • To interact with people, responding to comments, engaging in discussions etc. Perhaps to build a small community

What would not be my goal, or at least not a primary goal

  • To earn money on it
  • To use it to find new job

The main question - do you think somebody would be interested in reading such a blog? When I think about it, I feel like the "80%" part would be something that nobody really cares about, and the "20%" part is something nobody needs because the internet is already full of it.

In the spoiler below I put two links, first one is my personal website that would have blog part on "/blog" url if I commited to it, and the second one is one of my projects that I would write about

>https://matt765.dev/!<

>https://atomanimation.com/!<

reddit.com
u/Armauer — 12 days ago