dashore-incubator/src/middleware.ts
Nicholai 6e7ed3634b feat(wishlist): add infrastructure wishlist page
- add D1 database with drizzle ORM for wishlist data
- create wishlist items, votes, and comments tables
- implement server actions for CRUD, voting, comments
- add wishlist page with auth protection
- create components: stats, filters, item cards, add dialog, detail drawer
- add optimistic updates for voting
- update sidebar navigation with Infrastructure Wishlist link
- configure middleware to use WORKOS_REDIRECT_URI env var for local dev
2026-01-22 00:19:46 -07:00

16 lines
407 B
TypeScript

import { authkitMiddleware } from "@workos-inc/authkit-nextjs";
export default authkitMiddleware({
redirectUri: process.env.WORKOS_REDIRECT_URI || "https://fortura.cc/api/auth/callback",
middlewareAuth: {
enabled: true,
unauthenticatedPaths: ["/"],
},
});
export const config = {
matcher: [
"/((?!_next/static|_next/image|favicon.ico|favicon.svg|.*\\.(?:svg|png|jpg|jpeg|gif|webp)$).*)",
],
};