techhub.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A hub primarily for passionate technologists, but everyone is welcome

Administered by:

Server stats:

4.6K
active users

#nextjs

2 posts1 participant0 posts today

Day 18

Today I debugged an issue with accessing backend endpoints from a Next.js frontend talking to a NestJS API.

The browser was blocking requests due to a CORS error — the Authorization header was not allowed in the preflight response. Even though frontend domains were correctly set, I forgot to include Authorization in allowedHeaders.

After updating enableCors() to:

`allowedHeaders: 'Authorization, Content-Type, Accept'`

…the issue disappeared, and the dashboard successfully fetched the user's subscriptions from the backend.

write.tyolabs.com/2025/07/18/t

Ideas. Engineered. · Day#18 Solving the "CORS error with Authorization header" in Next.js and NestJS - Ideas. Engineered.
More from mariusz

Dneska prichazi liberation day pro Unreleased. Uspesne jsem deployoval prvni projekt na Scaleway VPSky.

Jako deployment tool jedu kamal-deploy.org, na ktery jsem si brousil zuby hodne dlouho ... a mel jsem vysoke naroky. A musim rict, ze jsem naprosto nadseny. V zasade pokryje vsechny use-casy Vercelu za cenu zeleza na Scaleway.

Az me prekvapilo, jak bezproblemovy ten flow je. Prakticky resi presne ty problemy, ktere me napadnou pri deployi cehokoli.

KamalDeploy web apps anywhereFrom bare metal to cloud VMs using Docker, deploy web apps anywhere with zero downtime.
#it#kamal#devops

Day 16
Just published a deep dive into building a secure login page with Next.js, NestJS, JWT, and PostgreSQL.

- Email verification
- Role-based access control
- Subscription enforcement
- Token decoding in frontend
- SQL-level inserts for system roles

Includes full code snippets and explanation of the entire flow.
Perfect if you're working on full-stack apps with JavaScript, TypeScript, and SQL.

write.tyolabs.com/2025/07/11/t

Ideas. Engineered. · Day#16 Secure User Login Flow in a SaaS App Using NestJS and Next.js - Ideas. Engineered.
More from mariusz

Day#16 Secure User Login Flow in a SaaS App Using NestJS and Next.js

This post walks through the complete implementation and offers examples of how to structure secure login logic in a modern SaaS application.

write.tyolabs.com/2025/07/11/t

Ideas. Engineered. · Day#16 Secure User Login Flow in a SaaS App Using NestJS and Next.js - Ideas. Engineered.
More from mariusz

Boost your Next.js app’s SEO & performance

Server-Side Rendering (SSR) isn’t just a buzzword, it’s your ticket to blazing-fast load times, better crawlability, and happier users.
• Want to rank higher on Google?
• Reduce bounce rates?
• Deliver snappy experiences?

Read the step-by-step tutorial here:
prishusoft.com/blog/implement-

If you’re building with React, this is a must-know.
Save it.Share it. Or DM us for help implementing SSR in your project!

À l'Association pour la transition Bas Carbone (ABC), nous sommes à la recherche d'un.e alternant.e pour nous aider à développer notre outil le BC+ dès septembre avec ma super collègue Chloé Molle ! Si vous êtes intéressé.e par des technologies récentes (React/NextJS) et par les sujets environnementaux une seule chose : foncez

N'hésitez pas à me contacter directement en MP 🌻

linkedin.com/jobs/view/4260059

I just got back from my trip to New York to attend #VercelShip2025; what a great experience!

The closing fireside chat with Guillermo Rauch and Brendan Eich discussing the future of the web was really insightful. Great to hear their perspectives on where we're headed and how to get there.

The web is evolving rapidly, and companies need engineers who can adapt and build for the future.
It's an exciting time to be building on and for the web!