teqo-backup/next.config.mjs
Cursor Agent f7e3591ea9
feat(OH6): estimate outbox + hybrid PledgeEstimateForm toasts
Wire @tanstack/offline-transactions for estimateVotesCas when OPS_HYBRID
is on: IndexedDB outbox, pending/conflict badges, Sonner keep/discard
resolution; legacy formAction path unchanged when the flag is off.

Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
2026-08-01 22:50:24 +00:00

18 lines
603 B
JavaScript

import { withPayload } from '@payloadcms/next/withPayload'
/** @type {import('next').NextConfig} */
const allowedImageHost = process.env.NEXT_PUBLIC_SITE_URL || 'https://jorgesolla.com.br'
const nextConfig = {
distDir: process.env.NEXT_DIST_DIR || '.next',
// OH6/OH*: compile-time ops hybrid flag (mother spec). Inlined for client
// islands; absent/`0` keeps CI identical to main.
env: {
OPS_HYBRID: process.env.OPS_HYBRID ?? '',
},
images: {
remotePatterns: [new URL(`${allowedImageHost}/**`)],
},
}
export default withPayload(nextConfig, { devBundleServerPackages: false })