| 1 | import { reactRouter } from "@react-router/dev/vite"; |
| 2 | import { defineConfig } from "vite"; |
| 3 | |
| 4 | /** |
| 5 | * The fixture's own vite.config.ts — loaded natively by the integration. |
| 6 | * Observable from the live test: |
| 7 | * |
| 8 | * - `__FIXTURE_MARKER__` is defined here and rendered on the SSR home page, |
| 9 | * proving the project's own config was applied. |
| 10 | * |
| 11 | * No deploy-target wiring here: `reactRouter()` owns both build |
| 12 | * environments, and the AWS target wraps the emitted server entry after the |
| 13 | * build. |
| 14 | */ |
| 15 | export default defineConfig({ |
| 16 | plugins: [reactRouter()], |
| 17 | define: { |
| 18 | __FIXTURE_MARKER__: JSON.stringify("react-router-aws-user-config-loaded"), |
| 19 | }, |
| 20 | }); |