From 043dd861759201ff5f580ded26920a3b6009de57 Mon Sep 17 00:00:00 2001 From: "Marvin A. Ruder" Date: Tue, 27 Feb 2024 22:14:23 +0000 Subject: [PATCH] Fix favicon path * Fix development `title` tag * Remove obsolete environment variable Signed-off-by: Marvin A. Ruder --- packages/frontend/package.json | 2 +- packages/frontend/vite.config.mts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/frontend/package.json b/packages/frontend/package.json index 2e0bad4f9..fbfac1a2f 100644 --- a/packages/frontend/package.json +++ b/packages/frontend/package.json @@ -10,7 +10,7 @@ "license": "MIT", "scripts": { "dev:vite": "vite", - "dev:preview": "NODE_ENV=production vite build && vite preview", + "dev:preview": "vite build && vite preview", "build": "vite build", "test:watch": "vitest", "test": "vitest run --color", diff --git a/packages/frontend/vite.config.mts b/packages/frontend/vite.config.mts index 4cef44737..6b63f0876 100644 --- a/packages/frontend/vite.config.mts +++ b/packages/frontend/vite.config.mts @@ -39,8 +39,8 @@ export default mergeConfig( template: "src/index.html", inject: { data: { - title: process.env.NODE_ENV === "development" ? "Development Preview – " : "" + "Rating Tracker", - faviconPath: "favicon" + process.env.NODE_ENV === "development" ? "-dev" : "", + title: (process.env.NODE_ENV === "development" ? "Development Preview – " : "") + "Rating Tracker", + faviconPath: "favicon" + (process.env.NODE_ENV === "development" ? "-dev" : ""), }, }, verbose: process.env.NODE_ENV === "development",