mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-27 06:13:06 +00:00
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>
18 lines
603 B
JavaScript
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 })
|