chore: create a utils/languages file

This commit is contained in:
Chuma McPhoy
2024-07-04 15:19:17 +02:00
parent f89d17cd7f
commit bfcef5b832
12 changed files with 31 additions and 54 deletions

View File

@@ -1,6 +1,5 @@
import { type NextMiddleware, NextResponse } from "next/server"
import { findLang } from "@/constants/languages"
import {
loyaltyPagesWebviews,
myPagesWebviews,
@@ -12,6 +11,7 @@ import { badRequest, notFound } from "@/server/errors/next"
import { decryptData } from "@/utils/aes"
import { resolve as resolveEntry } from "@/utils/entry"
import { findLang } from "@/utils/languages"
import { getDefaultRequestHeaders } from "./utils"