summaryrefslogtreecommitdiff
path: root/esbuild.config.js
diff options
context:
space:
mode:
authorElizabeth Hunt <me@liz.coffee>2025-12-13 17:11:43 -0800
committerElizabeth Hunt <me@liz.coffee>2025-12-13 17:11:43 -0800
commitdb0d9b80b4412a46cae0e58997f4baa7213948e3 (patch)
tree43e3c79ed683cbbc073ec4723316b2060a4a3db4 /esbuild.config.js
parentf7758b5ec2f7d34a16bee6ace52e362908770557 (diff)
downloadadelie-db0d9b80b4412a46cae0e58997f4baa7213948e3.tar.gz
adelie-db0d9b80b4412a46cae0e58997f4baa7213948e3.zip
Fixes host path
Diffstat (limited to 'esbuild.config.js')
-rw-r--r--esbuild.config.js11
1 files changed, 0 insertions, 11 deletions
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);
}