connect some api

This commit is contained in:
Jelaletdin12
2025-11-22 20:59:28 +05:00
parent 4fe0fb3d4e
commit 2857d34f4d
24 changed files with 1233 additions and 893 deletions

19
proxy.ts Normal file
View File

@@ -0,0 +1,19 @@
import createMiddleware from "next-intl/middleware"
import { locales, defaultLocale } from "./i18n/i18n"
const middleware = createMiddleware({
locales,
defaultLocale,
localePrefix: "always",
})
export default middleware
export const config = {
matcher: [
// Match all pathnames except for
// - … if they start with `/api`, `/_next` or `/_vercel`
// - … the ones containing a dot (e.g. `favicon.ico`)
"/((?!api|_next|_vercel|.*\\..*).*)",
],
}