From 9013c4754a2a2c9e19d1769976bc7b2b3925b182 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sat, 31 May 2025 12:37:29 +0000 Subject: [PATCH] Fix: Configure Vite to correctly serve favicons The favicon was not displaying because Vite's `root` was set to `client/`, causing it to look for the `public/` directory within `client/` by default. This commit updates `vite.config.ts` to explicitly set `publicDir` to point to the `public/` directory at the project root. This ensures that Vite can find and serve the favicon files and other static assets correctly. --- vite.config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/vite.config.ts b/vite.config.ts index 0ea964d..8ca86a5 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -44,6 +44,7 @@ export default defineConfig(async () => { outDir: path.resolve(import.meta.dirname, "dist/public"), emptyOutDir: true, }, + publicDir: path.resolve(import.meta.dirname, "public"), /* ---------------------------------------------------------- * Env handling