diff --git a/package.json b/package.json index 8e927a20..2db70c71 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,6 @@ "dependencies": { "@mdx-js/loader": "^3.1.0", "@mdx-js/react": "^3.1.0", - "@next/env": "^15.1.4", "@next/mdx": "^15.1.2", "@radix-ui/react-context-menu": "^2.2.1", "@radix-ui/react-dropdown-menu": "^2.1.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e24255ea..bf70b4c2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -14,9 +14,6 @@ importers: '@mdx-js/react': specifier: ^3.1.0 version: 3.1.0(@types/react@18.2.59)(react@18.2.0) - '@next/env': - specifier: ^15.1.4 - version: 15.1.4 '@next/mdx': specifier: ^15.1.2 version: 15.1.2(@mdx-js/loader@3.1.0(acorn@8.11.3)(webpack@5.90.3))(@mdx-js/react@3.1.0(@types/react@18.2.59)(react@18.2.0)) @@ -1894,9 +1891,6 @@ packages: '@next/env@14.2.5': resolution: {integrity: sha512-/zZGkrTOsraVfYjGP8uM0p6r0BDT6xWpkjdVbcz66PJVSpwXX3yNiRycxAuDfBKGWBrZBXRuK/YVlkNgxHGwmA==} - '@next/env@15.1.4': - resolution: {integrity: sha512-2fZ5YZjedi5AGaeoaC0B20zGntEHRhi2SdWcu61i48BllODcAmmtj8n7YarSPt4DaTsJaBFdxQAVEVzgmx2Zpw==} - '@next/eslint-plugin-next@14.1.3': resolution: {integrity: sha512-VCnZI2cy77Yaj3L7Uhs3+44ikMM1VD/fBMwvTBb3hIaTIuqa+DmG4dhUDq+MASu3yx97KhgsVJbsas0XuiKyww==} @@ -9630,8 +9624,6 @@ snapshots: '@next/env@14.2.5': {} - '@next/env@15.1.4': {} - '@next/eslint-plugin-next@14.1.3': dependencies: glob: 10.3.10 diff --git a/utils/constants.tsx b/utils/constants.tsx index e5d2b9f1..b04ca058 100644 --- a/utils/constants.tsx +++ b/utils/constants.tsx @@ -2,9 +2,6 @@ import type { i18n } from "../next-i18next.config"; // export const DEFAULT_LANGUAGE = i18n.defaultLocale; export const DEFAULT_LANGUAGE = "en"; export type Language = (typeof i18n.locales)[number]; -import { loadEnvConfig } from "@next/env"; -const projectDir = process.cwd(); -loadEnvConfig(projectDir); export interface LocalizedNote { en?: string;