From 11eef249fc242fb533f7ae5bf2015c67d2c29504 Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Mon, 7 Oct 2024 21:48:22 +0200 Subject: [PATCH] fix: config --- docusaurus.config.js | 4 +++- package.json | 1 + yarn.lock | 5 +++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index ce48b7db..d8d0b767 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -5,7 +5,9 @@ const lightCodeTheme = require("prism-react-renderer/themes/github"); const darkCodeTheme = require("prism-react-renderer/themes/dracula"); const math = require("remark-math"); const katex = require("rehype-katex"); -import "dotenv/config"; +const config = require("dotenv/config"); + +config(); /** @type {import('@docusaurus/types').Config} */ const config = { diff --git a/package.json b/package.json index f4a0eaa4..e815b6b0 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ "@docusaurus/preset-classic": "^2.4.3", "@mdx-js/react": "^1.6.22", "clsx": "^1.1.1", + "dotenv": "^16.4.5", "hast-util-is-element": "1.1.0", "param-case": "^3.0.4", "prism-react-renderer": "^1.3.5", diff --git a/yarn.lock b/yarn.lock index f7074852..46158416 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3564,6 +3564,11 @@ dot-prop@^5.2.0: dependencies: is-obj "^2.0.0" +dotenv@^16.4.5: + version "16.4.5" + resolved "https://registry.npmjs.org/dotenv/-/dotenv-16.4.5.tgz#cdd3b3b604cb327e286b4762e13502f717cb099f" + integrity sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg== + duplexer3@^0.1.4: version "0.1.5" resolved "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.5.tgz"