Deploy config: - .do/app.yaml: build the Dockerfile directly from GitHub (deploy_on_push) instead of a pre-built DOCR image; NEXT_PUBLIC_* set RUN_AND_BUILD_TIME with the propertymanagement.network domain so they bake into the client bundle; add custom domains block (apex + www); wire Sentry DSN (server + browser). Included pending work from the audit-fixes branch: - AI provider abstraction (OpenAI/Anthropic, admin-selectable; Anthropic default) - Per-landlord e-signature (DocuSign OAuth + Dropbox Sign) + migration 0010 - Outbound webhooks / Zapier integration - PayPal removal (Stripe-only billing) - Storage hardening (fail-loud when Spaces unconfigured), security fixes Verified: full production Docker build (same build-args as DO) passes clean. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
33 lines
842 B
TypeScript
33 lines
842 B
TypeScript
"use client"
|
|
|
|
import * as Sentry from "@sentry/nextjs"
|
|
import { useEffect } from "react"
|
|
|
|
export default function GlobalError({
|
|
error,
|
|
reset,
|
|
}: {
|
|
error: Error & { digest?: string }
|
|
reset: () => void
|
|
}) {
|
|
useEffect(() => {
|
|
Sentry.captureException(error)
|
|
console.error(error)
|
|
}, [error])
|
|
|
|
return (
|
|
<html lang="en">
|
|
<body className="flex min-h-screen flex-col items-center justify-center bg-[#09090b] text-white">
|
|
<h1 className="text-5xl font-bold text-red-500">500</h1>
|
|
<p className="mt-4 text-lg text-white/60">Something went wrong on our end.</p>
|
|
<button
|
|
onClick={reset}
|
|
className="mt-8 rounded-lg bg-indigo-600 px-6 py-3 text-sm font-medium text-white hover:bg-indigo-500 transition"
|
|
>
|
|
Try again
|
|
</button>
|
|
</body>
|
|
</html>
|
|
)
|
|
}
|