import { StackHandler } from "@stackframe/stack"; import { stackServerApp } from "../../../stack"; const authProvider = process.env.NEXT_PUBLIC_AUTH_PROVIDER; export default function Handler(props: unknown) { if (authProvider === "local") { // Return a simple message when using local auth return (

Local Auth Mode

Stack Auth handler is disabled when using local authentication.

); } return ; }