feat: Add Next.js 15 glassmorphism frontend for DAARION MVP

This commit is contained in:
Apple
2025-11-26 09:20:33 -08:00
parent 5ce1bf1035
commit 2f30f40c0b
24 changed files with 7831 additions and 5 deletions

24
apps/web/next.config.ts Normal file
View File

@@ -0,0 +1,24 @@
import type { NextConfig } from 'next'
const nextConfig: NextConfig = {
output: 'standalone',
async rewrites() {
// In production, API calls go to same origin
// In dev, proxy to local backend
const apiBase = process.env.NEXT_PUBLIC_API_BASE_URL || ''
if (apiBase && apiBase !== '') {
return [
{
source: '/api/:path*',
destination: `${apiBase}/api/:path*`,
},
]
}
return []
},
}
export default nextConfig