diff options
| author | Elizabeth Hunt <me@liz.coffee> | 2025-12-13 17:11:43 -0800 |
|---|---|---|
| committer | Elizabeth Hunt <me@liz.coffee> | 2025-12-13 17:11:43 -0800 |
| commit | db0d9b80b4412a46cae0e58997f4baa7213948e3 (patch) | |
| tree | 43e3c79ed683cbbc073ec4723316b2060a4a3db4 /esbuild.config.js | |
| parent | f7758b5ec2f7d34a16bee6ace52e362908770557 (diff) | |
| download | adelie-db0d9b80b4412a46cae0e58997f4baa7213948e3.tar.gz adelie-db0d9b80b4412a46cae0e58997f4baa7213948e3.zip | |
Fixes host path
Diffstat (limited to 'esbuild.config.js')
| -rw-r--r-- | esbuild.config.js | 11 |
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); } |
