Deploy on DigitalOcean App Platform (GitHub-source build) + consolidate audit-fixes
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>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
917a06ee85
commit
5495b94924
+14
-1
@@ -1,4 +1,5 @@
|
||||
import type { NextConfig } from "next";
|
||||
import { withSentryConfig } from "@sentry/nextjs";
|
||||
|
||||
// NOTE: The Content-Security-Policy is set per-request in `proxy.ts` (Next
|
||||
// middleware) so `script-src` can carry a per-request nonce instead of
|
||||
@@ -31,4 +32,16 @@ const nextConfig: NextConfig = {
|
||||
},
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
export default withSentryConfig(nextConfig, {
|
||||
org: "phluit",
|
||||
project: "property-management-network",
|
||||
// Only print source-map upload logs in CI.
|
||||
silent: !process.env.CI,
|
||||
// Upload a wider set of client source maps for readable stack traces.
|
||||
widenClientFileUpload: true,
|
||||
// Tree-shake Sentry's debug logger to shrink the client bundle.
|
||||
disableLogger: true,
|
||||
// Source-map upload runs at build time only when SENTRY_AUTH_TOKEN is set;
|
||||
// without it the build still succeeds (stack traces just aren't un-minified).
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user