Hi,
when I am trying to run the prerender example locally it starts serving the app but after entering http://localhost:3000/ all I can see is the This page could not be found error message. When I edit the react-router.config.ts to have ssr: true and restart the example the app starts to work. I think it may be the issue on the plugin's dev server level that it was disabling React Router dev middleware for apps with ssr:false.
Reproduction
From the repo root:
cd examples/prerender
pnpm run dev
Then open: http://localhost:3000/
Actual Behavior
The browser shows: This page could not be found
Expected Behavior
The dev server should render the prerender example home page at /, matching the configured route:
and the configured prerender path:
Hi,
when I am trying to run the
prerenderexample locally it starts serving the app but after enteringhttp://localhost:3000/all I can see is theThis page could not be founderror message. When I edit thereact-router.config.tsto havessr: trueand restart the example the app starts to work. I think it may be the issue on the plugin's dev server level that it was disabling React Router dev middleware for apps withssr:false.Reproduction
From the repo root:
Then open:
http://localhost:3000/Actual Behavior
The browser shows:
This page could not be foundExpected Behavior
The dev server should render the prerender example home page at /, matching the configured route:
and the configured prerender path: