feat: Add Next.js 15 glassmorphism frontend for DAARION MVP
This commit is contained in:
24
apps/web/next.config.ts
Normal file
24
apps/web/next.config.ts
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user