diff --git a/index.html b/index.html
deleted file mode 100644
index e73a2339..00000000
--- a/index.html
+++ /dev/null
@@ -1,51 +0,0 @@
-
-
-
- Mutiny Wallet
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/insertHead.js b/insertHead.js
new file mode 100644
index 00000000..5f33b619
--- /dev/null
+++ b/insertHead.js
@@ -0,0 +1,17 @@
+import { readFile, writeFile } from 'fs/promises';
+import { join } from 'path';
+
+const insertHeadTag = async () => {
+ const filePath = join(process.cwd(), 'dist', 'public', 'index.html');
+ try {
+ let data = await readFile(filePath, 'utf8');
+ const lines = data.split('\n');
+ lines.splice(2, 0, '');
+ data = lines.join('\n');
+ await writeFile(filePath, data);
+ } catch (err) {
+ console.error(`Error: ${err}`);
+ }
+};
+
+insertHeadTag();
diff --git a/package.json b/package.json
index b153c7ba..2e82bd81 100644
--- a/package.json
+++ b/package.json
@@ -6,7 +6,7 @@
"scripts": {
"dev": "solid-start dev",
"host": "solid-start dev --host",
- "build": "solid-start build",
+ "build": "solid-start build && node insertHead.js",
"start": "solid-start start",
"check-types": "tsc --noemit",
"eslint": "eslint src",