From db0d9b80b4412a46cae0e58997f4baa7213948e3 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Sat, 13 Dec 2025 17:11:43 -0800 Subject: Fixes host path --- esbuild.config.js | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'esbuild.config.js') diff --git a/esbuild.config.js b/esbuild.config.js index 1bee10c..88d726a 100644 --- a/esbuild.config.js +++ b/esbuild.config.js @@ -39,17 +39,6 @@ async function copyAssets() { async function processHTML() { let html = await fs.readFile('src/index.html', 'utf8'); - - const host = process.env.HOST || ''; - const cleanHost = host.replace(/\/$/, ''); - - if (cleanHost) { - html = html.replace(/href="\/bundle\./g, `href="${cleanHost}/bundle.`); - html = html.replace(/src="\/bundle\./g, `src="${cleanHost}/bundle.`); - html = html.replace(/href="\/img\//g, `href="${cleanHost}/img/`); - html = html.replace(/src="\/oneko\//g, `src="${cleanHost}/oneko/`); - } - await fs.writeFile('dist/index.html', html); } -- cgit v1.2.3-70-g09d2