🕵️ SicherheitslückenDetection and response for the actively exploited ProxyShell vulnerabilities(02.06.2022 um 02:00 Uhr)
⚠️ Malware / Trojaner / VirenHunting In Memory(21.06.2022 um 02:00 Uhr)
🔧 AI Nachrichten Getting the Most Out of Transformers in Elastic(23.08.2022 um 02:00 Uhr)
🕵️ SicherheitslückenDetecting and responding to Dirty Pipe with Elastic(09.09.2022 um 02:00 Uhr)
🕵️ SicherheitslückenDetection rules for SIGRed vulnerability(22.11.2022 um 01:00 Uhr)
🕵️ SicherheitslückenDetecting Exploitation of CVE-2021-44228 (Log4j2) with Elastic Security(22.11.2022 um 01:00 Uhr)
🕵️ SicherheitslückenElastic's response to the Spring4Shell vulnerability (CVE-2022-22965)(22.11.2022 um 01:00 Uhr)
🕵️ SicherheitslückenAnalysis of Log4Shell vulnerability & CVE-2021-45046(30.11.2022 um 01:00 Uhr)
⚠️ Malware / Trojaner / VirenEMOTET Dynamic Configuration Extraction(01.12.2022 um 01:00 Uhr)
⚠️ Malware / Trojaner / VirenQBOT Configuration Extractor(06.12.2022 um 01:00 Uhr)
🕵️ SicherheitslückenDetection and response for the actively exploited ProxyShell vulnerabilities(02.06.2022 um 02:00 Uhr)
⚠️ Malware / Trojaner / VirenHunting In Memory(21.06.2022 um 02:00 Uhr)
🔧 AI Nachrichten Getting the Most Out of Transformers in Elastic(23.08.2022 um 02:00 Uhr)
🕵️ SicherheitslückenDetecting and responding to Dirty Pipe with Elastic(09.09.2022 um 02:00 Uhr)
🕵️ SicherheitslückenDetection rules for SIGRed vulnerability(22.11.2022 um 01:00 Uhr)
🕵️ SicherheitslückenDetecting Exploitation of CVE-2021-44228 (Log4j2) with Elastic Security(22.11.2022 um 01:00 Uhr)
🕵️ SicherheitslückenElastic's response to the Spring4Shell vulnerability (CVE-2022-22965)(22.11.2022 um 01:00 Uhr)
🕵️ SicherheitslückenAnalysis of Log4Shell vulnerability & CVE-2021-45046(30.11.2022 um 01:00 Uhr)
⚠️ Malware / Trojaner / VirenEMOTET Dynamic Configuration Extraction(01.12.2022 um 01:00 Uhr)
⚠️ Malware / Trojaner / VirenQBOT Configuration Extractor(06.12.2022 um 01:00 Uhr)

🔧 Programmierung 🕛 kürzlich 3 Min Lesezeit
0

The Web Dev Stack That's Winning in 2026: Next.js + Drizzle + Postgres + Clerk

↗ Quelle (dev.to)
🗣️ Stimme:


Here's why this stack works so well — and how to set it up from scratch.



Why this stack?

Next.js 15 — Server Components, Server Actions, and Edge Runtime. The most complete React framework in 2026.

Drizzle ORM — Lightweight, type-safe, and SQL-first. Faster than Prisma, simpler than raw SQL.

Neon Postgres — Serverless PostgreSQL with a generous free tier, branching, and connection pooling built in.

Clerk — Drop-in auth with pre-built UI components, social logins, and webhooks. No more rolling your own auth.

Step 1: Create the Next.js project

npx create-next-app@latest my-app --typescript --tailwind --app

cd my-app

Step 2: Set up Neon + Drizzle

npm install drizzle-orm @neondatabase/serverless

npm install -D drizzle-kit

Create src/db/schema.ts:




CODE
import { pgTable, serial, text, timestamp } from "drizzle-orm/pg-core";

export const users = pgTable("users", {
id: serial("id").primaryKey(),
clerkId: text("clerk_id").notNull().unique(),
email: text("email").notNull(),
name: text("name"),
createdAt: timestamp("created_at").defaultNow(),
});
Create src/db/index.ts:

import { neon } from "@neondatabase/serverless";
import { drizzle } from "drizzle-orm/neon-http";
import * as schema from "./schema";

const sql = neon(process.env.DATABASE_URL!);
export const db = drizzle(sql, { schema });
Step 3: Add Drizzle config and push schema
Create drizzle.config.ts:

import { defineConfig } from "drizzle-kit";

export default defineConfig({
schema: "./src/db/schema.ts",
out: "./drizzle",
dialect: "postgresql",
dbCredentials: {
url: process.env.DATABASE_URL!,
},
});
npx drizzle-kit push
Step 4: Set up Clerk authentication
npm install @clerk/nextjs
Wrap your app in app/layout.tsx:

import { ClerkProvider } from "@clerk/nextjs";

export default function RootLayout({ children }) {
return (


{children}


);
}






Add Clerk keys to .env.local:



NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=pk_...

CLERK_SECRET_KEY=sk_...

Protect routes in middleware.ts:




CODE

import { clerkMiddleware, createRouteMatcher } from "@clerk/nextjs/server";

const isProtected = createRouteMatcher(["/dashboard(.*)"]);

export default clerkMiddleware((auth, req) => {
if (isProtected(req)) auth().protect();
});

export const config = { matcher: ["/((?!.*\\..*|_next).*)", "/"] };
Step 5: Query the database in a Server Component
import { db } from "@/db";
import { users } from "@/db/schema";
import { auth } from "@clerk/nextjs/server";

export default async function Dashboard() {
const { userId } = auth();
const user = await db.query.users.findFirst({
where: (users, { eq }) => eq(users.clerkId, userId!),
});

return
Welcome, {user?.name}
;
}






Conclusion

Next.js + Drizzle + Neon + Clerk is the stack I recommend to every developer starting a new project in 2026. It's fast to set up, type-safe end-to-end, scales to production without config changes, and has a generous free tier across every service. Stop spending a week on boilerplate — get this stack running in an afternoon and focus on building.

Vollständiger Original-Bericht
Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 56%
🟡 In Evaluierung 21%
🟢 Keine Auswirkung 10%
Spannende Innovation 13%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
2 Quellen
Detecting and responding to Dirty Pipe with Elastic
1 Quelle
Detection and response for the actively exploited ProxyShell vulnerabilities
1 Quelle
Hunting In Memory
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten The Web Dev Stack That's Winning in 2026: Next.js + Drizzle + Postgres + Clerk

Thematisch verwandte Begriffe: Stack, Thats, Winning, 2026 · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...