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>
<nav className="nav">
<NavLink
to="/ops"
to="/"
style={{ opacity: 0.6 }}
>
+1
View File
@@ -12,6 +12,7 @@ export default defineConfig({
server: {
port: 3002,
proxy: {
'/admin-api': adminProxy,
'/api': adminProxy,
'/auth': authProxy,
},