@@ -39,6 +39,7 @@ export async function startServer({
3939 const currentFileDir = path . dirname ( fileURLToPath ( currentFileUrl ) ) ;
4040
4141
42+ consola . log ( 'dev : ' + dev )
4243 consola . log ( 'currentFileUrl : ' + currentFileUrl )
4344 consola . log ( 'currentFileDir : ' + currentFileDir )
4445
@@ -81,27 +82,27 @@ export async function startServer({
8182 try {
8283 const parsedUrl = parse ( req . url ! , true ) ;
8384
84- if ( parsedUrl . pathname === "/api/env" ) {
85- // Get both config and variables data
86- const envConfigData = await getEnvConfigData ( relativePathDir ) ;
87- const envVariablesData = await getEnvVariablesData ( relativePathDir ) ;
88-
89- // Combine for backward compatibility (if needed by any external consumers)
90- const combinedData = {
91- envConfigData,
92- envVariablesData,
93- // Legacy format for backward compatibility
94- projectPath : envConfigData . projectPath ,
95- envClientConfig : envConfigData . envClientConfig ,
96- files : envVariablesData . files ,
97- variables : envVariablesData . variables ,
98- processEnv : envVariablesData . processEnv ,
99- } ;
100-
101- res . writeHead ( 200 , { "Content-Type" : "application/json" } ) ;
102- res . end ( JSON . stringify ( combinedData ) ) ;
103- return ;
104- }
85+ // if (parsedUrl.pathname === "/api/env") {
86+ // // Get both config and variables data
87+ // const envConfigData = await getEnvConfigData(relativePathDir);
88+ // const envVariablesData = await getEnvVariablesData(relativePathDir);
89+
90+ // // Combine for backward compatibility (if needed by any external consumers)
91+ // const combinedData = {
92+ // envConfigData,
93+ // envVariablesData,
94+ // // Legacy format for backward compatibility
95+ // projectPath: envConfigData.projectPath,
96+ // envClientConfig: envConfigData.envClientConfig,
97+ // files: envVariablesData.files,
98+ // variables: envVariablesData.variables,
99+ // processEnv: envVariablesData.processEnv,
100+ // };
101+
102+ // res.writeHead(200, { "Content-Type": "application/json" });
103+ // res.end(JSON.stringify(combinedData));
104+ // return;
105+ // }
105106
106107 await handle ( req , res , parsedUrl ) ;
107108 } catch ( err ) {
0 commit comments