fix: proxy /api/nodes/* to city-service public endpoints
This commit is contained in:
@@ -12,6 +12,15 @@ const nextConfig: NextConfig = {
|
|||||||
console.log('[next.config] INTERNAL_API_URL:', internalApiUrl)
|
console.log('[next.config] INTERNAL_API_URL:', internalApiUrl)
|
||||||
|
|
||||||
return [
|
return [
|
||||||
|
// Nodes API (public endpoints)
|
||||||
|
{
|
||||||
|
source: '/api/nodes/list',
|
||||||
|
destination: `${internalApiUrl}/public/nodes`,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
source: '/api/nodes/:nodeId',
|
||||||
|
destination: `${internalApiUrl}/public/nodes/:nodeId`,
|
||||||
|
},
|
||||||
// Agent dashboard API -> /city/agents
|
// Agent dashboard API -> /city/agents
|
||||||
{
|
{
|
||||||
source: '/api/agents/:agentId/dashboard',
|
source: '/api/agents/:agentId/dashboard',
|
||||||
|
|||||||
Reference in New Issue
Block a user