Fix ops admin back link and local /admin-api proxy.

Use SPA root for the return-to-ops nav and proxy /admin-api in Vite dev so super-admin API calls work locally.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
john
2026-06-17 08:59:07 +08:00
parent 7357157cb2
commit 67348db026
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ export function AdminLayout() {
</header> </header>
<nav className="nav"> <nav className="nav">
<NavLink <NavLink
to="/ops" to="/"
style={{ opacity: 0.6 }} style={{ opacity: 0.6 }}
> >
+1
View File
@@ -12,6 +12,7 @@ export default defineConfig({
server: { server: {
port: 3002, port: 3002,
proxy: { proxy: {
'/admin-api': adminProxy,
'/api': adminProxy, '/api': adminProxy,
'/auth': authProxy, '/auth': authProxy,
}, },