|
@@ -2,7 +2,7 @@ import createMiddleware from "next-intl/middleware";
|
|
|
import { NextFetchEvent, NextRequest, NextResponse } from "next/server";
|
|
|
import { locales } from "./i18n";
|
|
|
|
|
|
-function stackMiddleware(functions: Function[], index = 0) {
|
|
|
+function stackMiddleware(functions: Function[], index = 0): Function {
|
|
|
const current = functions[index];
|
|
|
if (current) {
|
|
|
const next = stackMiddleware(functions, index + 1);
|
|
@@ -22,7 +22,7 @@ function localMiddleware() {
|
|
|
}
|
|
|
|
|
|
const whiteRouters = ["/"];
|
|
|
-function authMiddleware(next) {
|
|
|
+function authMiddleware(next: Function) {
|
|
|
return async (request: NextRequest, res: NextResponse) => {
|
|
|
console.log(
|
|
|
`🎯🎯🎯🎯🎯-> in middleware.ts on 28`,
|