diff --git a/packages/web/index.html b/packages/web/index.html
index 1564f641..1b3afa71 100644
--- a/packages/web/index.html
+++ b/packages/web/index.html
@@ -29,7 +29,7 @@
-
Meshtastic Web
+ <%- title %>
diff --git a/packages/web/package.json b/packages/web/package.json
index 66d1880a..ac9419e6 100644
--- a/packages/web/package.json
+++ b/packages/web/package.json
@@ -14,6 +14,7 @@
"homepage": "https://meshtastic.org",
"scripts": {
"build": "vite build",
+ "build:test": "vite build --mode test",
"build:analyze": "BUNDLE_ANALYZE=true bun run build",
"check": "biome check src/",
"check:fix": "biome check --write src/",
diff --git a/packages/web/vite.config.ts b/packages/web/vite.config.ts
index 90447309..52a49f74 100644
--- a/packages/web/vite.config.ts
+++ b/packages/web/vite.config.ts
@@ -29,6 +29,9 @@ const CONTENT_SECURITY_POLICY =
export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd());
+ const isProd = mode === "production";
+ const isTest = mode === "test";
+
return {
plugins: [
react(),
@@ -37,8 +40,9 @@ export default defineConfig(({ mode }) => {
createHtmlPlugin({
inject: {
data: {
+ title: isTest ? "Meshtastic Web (TEST)" : "Meshtastic Web",
cookieYesScript:
- mode === "production" && env.VITE_COOKIEYES_CLIENT_ID
+ isProd && env.VITE_COOKIEYES_CLIENT_ID
? ``
: "",
},