hp-studios-ai-content-agent/frontend
DJP a56669725e api: 401 redirect now respects VITE_BASE_PATH
The axios 401 interceptor used window.location.href = '/login' which
bypassed react-router-dom's basename. On a subpath deploy this dumped
the user at https://host/login (outside the app) instead of
https://host/hp-content-agent/login.

Now reads import.meta.env.BASE_URL (set at build time from
VITE_BASE_PATH) and prepends it. Also no-ops the redirect when
already on a /login route, to avoid the redirect-loop case where
GET /auth/me 401s on the login page itself.
2026-05-06 09:35:04 -04:00
..
src api: 401 redirect now respects VITE_BASE_PATH 2026-05-06 09:35:04 -04:00
Dockerfile Add deploy script, prod compose override, and Apache subpath proxy 2026-04-22 15:23:51 -04:00
index.html Initial import — HP Studios AI Content Agent 2026-04-17 17:11:25 -04:00
nginx.conf Add deploy script, prod compose override, and Apache subpath proxy 2026-04-22 15:23:51 -04:00
package-lock.json Initial import — HP Studios AI Content Agent 2026-04-17 17:11:25 -04:00
package.json Initial import — HP Studios AI Content Agent 2026-04-17 17:11:25 -04:00
postcss.config.cjs Initial import — HP Studios AI Content Agent 2026-04-17 17:11:25 -04:00
tailwind.config.ts Initial import — HP Studios AI Content Agent 2026-04-17 17:11:25 -04:00
tsconfig.json Initial import — HP Studios AI Content Agent 2026-04-17 17:11:25 -04:00
tsconfig.node.json Initial import — HP Studios AI Content Agent 2026-04-17 17:11:25 -04:00
vite.config.ts Add deploy script, prod compose override, and Apache subpath proxy 2026-04-22 15:23:51 -04:00