First draft

This commit is contained in:
lcbtan 2024-01-24 03:04:18 +08:00
parent 18be2ec837
commit df0739bb8b
36 changed files with 3342 additions and 3501 deletions

View file

@ -1,12 +1,11 @@
import { NextResponse } from "next/server"
import type { NextRequest } from "next/server"
import NextAuth from "next-auth"
import { authConfig } from "./auth.config"
export function middleware(request: NextRequest) {
// TODO: Feel free to remove this block
if (request.headers?.get("host")?.includes("next-enterprise.vercel.app")) {
return NextResponse.redirect("https://blazity.com/open-source/nextjs-enterprise-boilerplate", { status: 301 })
}
}
export default NextAuth(authConfig).auth
export function middleware(request: NextRequest) {}
export const config = {
matcher: [