Some checks failed
CI / Frontend Lint & Type Check (push) Has been cancelled
CI / Frontend Build (push) Has been cancelled
CI / Backend Lint (push) Has been cancelled
CI / Backend Tests (push) Has been cancelled
CI / Docker Build (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
Deploy / Build & Push Images (push) Has been cancelled
Deploy / Deploy to Server (push) Has been cancelled
Deploy / Notify (push) Has been cancelled
- Renamed /command/* routes to /terminal/* - Renamed CommandCenterLayout to TerminalLayout - Updated all internal links - Added permanent redirects from /command/* to /terminal/* - Updated Sidebar navigation - Added concept docs (pounce_*.md)
39 lines
908 B
JavaScript
39 lines
908 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
reactStrictMode: true,
|
|
// output: 'standalone', // Only needed for Docker deployment
|
|
|
|
// Redirects from old /command/* to new /terminal/*
|
|
async redirects() {
|
|
return [
|
|
{
|
|
source: '/command',
|
|
destination: '/terminal/dashboard',
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: '/command/:path*',
|
|
destination: '/terminal/:path*',
|
|
permanent: true,
|
|
},
|
|
]
|
|
},
|
|
|
|
// Proxy API requests to backend
|
|
// This ensures /api/v1/* works regardless of how the server is accessed
|
|
async rewrites() {
|
|
// Determine backend URL based on environment
|
|
const backendUrl = process.env.BACKEND_URL || 'http://127.0.0.1:8000'
|
|
|
|
return [
|
|
{
|
|
source: '/api/v1/:path*',
|
|
destination: `${backendUrl}/api/v1/:path*`,
|
|
},
|
|
]
|
|
},
|
|
}
|
|
|
|
module.exports = nextConfig
|
|
|