Skip to content

Commit 17818a8

Browse files
committed
Update the env variable plugin
1 parent f33f677 commit 17818a8

File tree

5 files changed

+4504
-264
lines changed

5 files changed

+4504
-264
lines changed

docusaurus.config.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,17 @@ const config: Config = {
246246
{ rootDir: ".integrationBuilderCache" },
247247
],
248248
path.resolve(__dirname, "plugins", "node-polyfills"),
249-
path.resolve(__dirname, "plugins", "env-variables-plugin"),
249+
[
250+
"docusaurus2-dotenv",
251+
{
252+
path: "./.env", // The path to your environment variables.
253+
safe: false, // If false ignore safe-mode, if true load './.env.example', if a string load that file as the sample
254+
systemvars: false, // Set to true if you would rather load all system variables as well (useful for CI purposes)
255+
silent: false, // If true, all warnings will be suppressed
256+
expand: false, // Allows your variables to be "expanded" for reusability within your .env file
257+
defaults: false, // Adds support for dotenv-defaults. If set to true, uses ./.env.defaults
258+
},
259+
],
250260
[
251261
"@docusaurus/plugin-client-redirects",
252262
{

0 commit comments

Comments
 (0)