@@ -84,6 +84,17 @@ const config = {
8484 plugins : [
8585 'docusaurus-plugin-sass' ,
8686 './src/plugins/mm-scss-utils' ,
87+ [
88+ "docusaurus2-dotenv" ,
89+ {
90+ path : "./.env" , // The path to your environment variables.
91+ safe : false , // If false ignore safe-mode, if true load './.env.example', if a string load that file as the sample
92+ systemvars : false , // Set to true if you would rather load all system variables as well (useful for CI purposes)
93+ silent : false , // If true, all warnings will be suppressed
94+ expand : false , // Allows your variables to be "expanded" for reusability within your .env file
95+ defaults : false , // Adds support for dotenv-defaults. If set to true, uses ./.env.defaults
96+ } ,
97+ ] ,
8798 [
8899 '@docusaurus/plugin-content-docs' ,
89100 {
@@ -168,13 +179,13 @@ const config = {
168179 './src/plugins/plugin-json-rpc.ts' ,
169180 isProd
170181 ? [
171- 'docusaurus-plugin-segment' ,
172- {
173- apiKey : process . env . SEGMENT_ANALYTICS_KEY ,
174- load : { cookie : { sameSite : 'None' , secure : true } } ,
175- page : true ,
176- } ,
177- ]
182+ 'docusaurus-plugin-segment' ,
183+ {
184+ apiKey : process . env . SEGMENT_ANALYTICS_KEY ,
185+ load : { cookie : { sameSite : 'None' , secure : true } } ,
186+ page : true ,
187+ } ,
188+ ]
178189 : null ,
179190 './src/plugins/launchdarkly' ,
180191 './src/plugins/sentry' ,
0 commit comments