Spaces:
Sleeping
Sleeping
Download src/middleware.ts from veltrixcode/Iot: direct link, hf CLI and curl.
- Browser
- Download file 299 Bytes
-
https://huggingface.co/spaces/veltrixcode/Iot/resolve/b22ca5df603c8db2e13997c6a3caba9b4e2eb415/src/middleware.ts
- Command line
-
hf download hf://spaces/veltrixcode/Iot@b22ca5df603c8db2e13997c6a3caba9b4e2eb415/src/middleware.ts
-
curl -L -o middleware.ts https://huggingface.co/spaces/veltrixcode/Iot/resolve/b22ca5df603c8db2e13997c6a3caba9b4e2eb415/src/middleware.ts
299 Bytes
| import NextAuth from "next-auth" | |
| import { authConfig } from "./auth.config" | |
| export default NextAuth(authConfig).auth | |
| export const config = { | |
| // https://nextjs.org/docs/app/building-your-application/routing/middleware#matcher | |
| matcher: ['/((?!api|_next/static|_next/image|.*\\.png$).*)'], | |
| } | |