// TODO: Could not make this work, this is preferred way. See if you can make it work.
import { withMiddlewareAuthRequired } from "@auth0/nextjs-auth0/edge"

export default withMiddlewareAuthRequired({
  returnTo: "/login",
})

export const config = {
  matcher: "/app/:path*",
}
