diff --git a/frontend/astro.config.mjs b/frontend/astro.config.mjs
index 57519a3..77bff2d 100644
--- a/frontend/astro.config.mjs
+++ b/frontend/astro.config.mjs
@@ -5,4 +5,12 @@ import node from '@astrojs/node';
// https://astro.build/config
export default defineConfig({
adapter: node({ mode: 'standalone' }),
+ vite: {
+ server: {
+ proxy: {
+ '/api': 'http://127.0.0.1:3000',
+ '/health': 'http://127.0.0.1:3000',
+ },
+ },
+ },
});
diff --git a/frontend/src/components/AdminNav.astro b/frontend/src/components/AdminNav.astro
index 9634294..8520954 100644
--- a/frontend/src/components/AdminNav.astro
+++ b/frontend/src/components/AdminNav.astro
@@ -1,14 +1,12 @@
---
interface Props {
- currentPage;
+ currentPage: string;
}
const { currentPage } = Astro.props;
const navItems = [
{ href: '/admin/settings', label: 'Instance Settings', icon: '⚙️' },
- { href: '/admin/users', label: 'Users', icon: '👥' },
- { href: '/admin/communities', label: 'Communities', icon: '🏘️' },
{ href: '/admin/approvals', label: 'Approvals', icon: '✅' },
{ href: '/admin/invitations', label: 'Invitations', icon: '📨' },
{ href: '/admin/roles', label: 'Roles & Permissions', icon: '🔐' },
diff --git a/frontend/src/components/voting/DelegationGraph.astro b/frontend/src/components/voting/DelegationGraph.astro
index 1482ad5..ebdc55c 100644
--- a/frontend/src/components/voting/DelegationGraph.astro
+++ b/frontend/src/components/voting/DelegationGraph.astro
@@ -3,10 +3,11 @@
* DelegationGraph - Visual representation of delegation chains
* Shows who delegates to whom with interactive exploration
*/
+import { API_BASE as apiBase } from '../../lib/api';
interface Props {
- userId?;
- communityId?;
- compact?;
+ userId?: string;
+ communityId?: string;
+ compact?: boolean;
}
const { userId, communityId, compact = false } = Astro.props;
@@ -54,35 +55,36 @@ const { userId, communityId, compact = false } = Astro.props;
-
diff --git a/frontend/src/pages/admin/voting.astro b/frontend/src/pages/admin/voting.astro
index 00bb055..887cf86 100644
--- a/frontend/src/pages/admin/voting.astro
+++ b/frontend/src/pages/admin/voting.astro
@@ -574,6 +574,10 @@ import { API_BASE } from '../../lib/api';