modcomms/frontend
Vadym Samoilenko ef1e4adabd Fix PDF logo URL to include Vite base path in production
window.location.origin alone gives https://baic.oliver.solutions, but the
app is deployed at /modcomms/ (VITE_BASE_PATH=/modcomms/), so the logo
was loading from the wrong path (404). Now uses:
  window.location.origin + import.meta.env.BASE_URL + filename
which resolves correctly in both dev (http://localhost:3000/...) and
production (https://baic.oliver.solutions/modcomms/...).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-16 14:11:12 +00:00
..
components Fix PDF logo URL to include Vite base path in production 2026-03-16 14:11:12 +00:00
contexts Grant oversight_admin write access to campaigns and proofs 2026-03-03 13:08:54 +00:00
hooks Add PDF preview support with on-demand rasterization 2026-01-25 08:56:23 -06:00
public Fix LlamaParse 401 + update logo to v5 2026-03-16 12:22:31 +00:00
services Prepare production deployment for baic.oliver.solutions/modcomms 2026-03-06 11:54:00 +00:00
utils Prepare production deployment for baic.oliver.solutions/modcomms 2026-03-06 11:54:00 +00:00
App.tsx Prepare production deployment for baic.oliver.solutions/modcomms 2026-03-06 11:54:00 +00:00
constants.ts Restructure agent system: remove Tone, split Channel, implement Legal 2026-01-24 11:58:17 -06:00
index.html Restyle full application from Barclays to Oliver Agency brand 2026-03-03 10:16:26 +00:00
index.tsx permissions changes 2025-12-18 16:51:27 +00:00
metadata.json permissions changes 2025-12-18 16:51:27 +00:00
package-lock.json permissions changes 2025-12-18 16:51:27 +00:00
package.json permissions changes 2025-12-18 16:51:27 +00:00
README.md permissions changes 2025-12-18 16:51:27 +00:00
tsconfig.json permissions changes 2025-12-18 16:51:27 +00:00
types.ts Add frontend RBAC: UserContext, role-based sidebar, agency filter, user management 2026-02-19 08:36:38 -06:00
vite.config.ts Prepare production deployment for baic.oliver.solutions/modcomms 2026-03-06 11:54:00 +00:00

GHBanner

Run and deploy your AI Studio app

This contains everything you need to run your app locally.

View your app in AI Studio: https://ai.studio/apps/drive/1vH-R-vj0Xkk_g2ZFdHtLxNc12sFTOl2L

Run Locally

Prerequisites: Node.js

  1. Install dependencies: npm install
  2. Set the GEMINI_API_KEY in .env.local to your Gemini API key
  3. Run the app: npm run dev