Skip to content

Prerender example not working #38

@tokerson

Description

@tokerson

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:

index('routes/home.tsx')

and the configured prerender path:

prerender: ['/']

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions