next-fortress
next-fortress copied to clipboard
This is a Next.js plugin that redirects or rewrite for accesses that are not authenticated.
V5.1.0
I will divide and reduce with respect to future development of this library. In order to reduce maintenance costs, I discontinue features that are not widely used, can be substituted...
My middleware: ```ts import { region, userPoolId, userPoolWebClientId, Group } from "@frontend/config/next" import { makeCognitoInspector } from "next-fortress" import { NextMiddleware, NextResponse } from "next/server" const redirecter: NextMiddleware = (req)...
Return status code and alternative HTML to the client directly from middleware.