File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -60,17 +60,19 @@ export const quartoConfig = {
6060 } ,
6161 dotenv : async ( forceReload ?: boolean ) : Promise < Record < string , string > > => {
6262 if ( forceReload || ! dotenvConfig ) {
63+ const defaultOptions : ConfigOptions = {
64+ envPath : join ( quartoConfig . sharePath ( ) , "env" , "env.defaults" ) ,
65+ } ;
66+ dotenvConfig = await config ( defaultOptions ) ;
6367 const options : ConfigOptions = {
64- defaultsPath : join ( quartoConfig . sharePath ( ) , "env" , "env.defaults" ) ,
65- // On dev mode only (QUARTO_DEBUG='true'), we load the .env file in root quarto-cli project
6668 envPath : quartoConfig . isDebug ( )
6769 ? join ( quartoConfig . sharePath ( ) , ".." , ".." , ".env" )
6870 : null ,
69- // we don't want any `.env.example` o be loaded, especially one from working dir
70- // https://github.com/quarto-dev/quarto-cli/issues/9262
71- examplePath : null ,
7271 } ;
73- dotenvConfig = await config ( options ) ;
72+ const otherConfig = await config ( options ) ;
73+ for ( const key of Object . keys ( otherConfig ) ) {
74+ dotenvConfig [ key ] = otherConfig [ key ] ;
75+ }
7476 }
7577 return dotenvConfig ;
7678 } ,
You can’t perform that action at this time.
0 commit comments