mirror of
https://github.com/NicholaiVogel/dashore-incubator.git
synced 2026-03-31 06:40:32 +00:00
- 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
16 lines
407 B
TypeScript
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)$).*)",
|
|
],
|
|
};
|