| 1 | import * as Options from "@alchemy.run/cloudflare-test-tools/e2e/Options"; |
| 2 | import path from "node:path"; |
| 3 | |
| 4 | export default Options.make({ |
| 5 | vite: { |
| 6 | main: path.resolve( |
| 7 | import.meta.dirname, |
| 8 | "react-router-vite/entry.worker.tsx", |
| 9 | ), |
| 10 | compatibilityDate: "2026-03-10", |
| 11 | compatibilityFlags: ["nodejs_compat"], |
| 12 | viteEnvironments: { entry: "rsc", children: ["ssr"] }, |
| 13 | worker: { |
| 14 | name: "fixtures-react-router-rsc", |
| 15 | bindings: [], |
| 16 | assets: { |
| 17 | htmlHandling: "auto-trailing-slash", |
| 18 | notFoundHandling: "none", |
| 19 | }, |
| 20 | }, |
| 21 | }, |
| 22 | miniflare: { |
| 23 | compatibilityDate: "2026-03-10", |
| 24 | compatibilityFlags: ["nodejs_compat"], |
| 25 | assets: { |
| 26 | routerConfig: { |
| 27 | has_user_worker: true, |
| 28 | invoke_user_worker_ahead_of_assets: false, |
| 29 | debug: true, |
| 30 | }, |
| 31 | assetConfig: { |
| 32 | html_handling: "auto-trailing-slash", |
| 33 | not_found_handling: "none", |
| 34 | debug: true, |
| 35 | has_static_routing: false, |
| 36 | }, |
| 37 | }, |
| 38 | }, |
| 39 | }); |