import type { Config } from "@react-router/dev/config"; export default { ssr: true, // Behind Nginx/Caddy the Node server sees http://, while the browser's Origin is https://, so // React Router's CSRF check rejects every form action (400 Bad Request). List the hosts that may // post: production, and the Shopify CLI dev tunnels. allowedActionOrigins: ["datewise.metatronlabz.com", "*.trycloudflare.com"], } satisfies Config;