bug fixes. remove builds page for now
CI / deploy (push) Failing after 6s

This commit is contained in:
2026-03-31 14:15:16 -04:00
parent cdb3a8dbb3
commit 1aafd08af0
5 changed files with 13 additions and 907 deletions
+5 -21
View File
@@ -1,6 +1,5 @@
import { NextRequest, NextResponse } from 'next/server'
const API_BASE_URL = process.env.API_BASE_URL || process.env.NEXT_PUBLIC_API_BASE_URL
import { springProxy } from '@/lib/springProxy'
export async function POST(req: NextRequest) {
let body: unknown
@@ -16,23 +15,8 @@ export async function POST(req: NextRequest) {
'unknown'
const userAgent = req.headers.get('user-agent') ?? 'unknown'
try {
const res = await fetch(`${API_BASE_URL}/api/v1/feedback`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ ...(body as object), ipAddress: ip, userAgent }),
cache: 'no-store',
})
if (!res.ok) {
const text = await res.text().catch(() => '')
console.error('[/api/feedback] Spring Boot error:', res.status, text)
return NextResponse.json({ error: 'Failed to submit' }, { status: res.status })
}
return NextResponse.json({ ok: true })
} catch (e) {
console.error('[/api/feedback] proxy error:', e)
return NextResponse.json({ error: 'Service unavailable' }, { status: 500 })
}
return springProxy(req, '/api/v1/feedback', {
method: 'POST',
body: { ...(body as object), ipAddress: ip, userAgent },
})
}