From 1b3336f0e4f4e644938074333d274724900d1c5a Mon Sep 17 00:00:00 2001 From: Elliot Braem <16282460+elliotBraem@users.noreply.github.com> Date: Wed, 17 Jul 2024 16:34:53 -0400 Subject: [PATCH] disable output to index --- lib/server.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/server.ts b/lib/server.ts index af8c53b..025fdb2 100644 --- a/lib/server.ts +++ b/lib/server.ts @@ -333,17 +333,17 @@ async function setupGateway(gatewayUrl: string, isLocalPath: boolean, opts: DevO // log.debug(`Importing packages...`); <-- this used jpsm to create import map for wallet selector // modifiedHtml = await importPackages(modifiedHtml); // but didn't want it to run each time dev server started, so commented out - // Write the modified HTML to the output path - const outputDir = path.join(opts.output); - const outputPath = path.join(outputDir, 'index.html'); + // // Write the modified HTML to the output path + // const outputDir = path.join(opts.output); + // const outputPath = path.join(outputDir, 'index.html'); - // Make sure the directory exists - await fs.promises.mkdir(outputDir, { recursive: true }); + // // Make sure the directory exists + // await fs.promises.mkdir(outputDir, { recursive: true }); - // Write modified html - await fs.promises.writeFile(outputPath, modifiedHtml); + // // Write modified html + // await fs.promises.writeFile(outputPath, modifiedHtml); - log.debug(`Modified HTML written to: ${outputPath}`); + // log.debug(`Modified HTML written to: ${outputPath}`); } catch (error) { log.error(`Error setting up gateway: ${error}`); throw error;