Skip to content

Routing doesn't work correctly in release mode #17

@chase-lambert

Description

@chase-lambert

Hello, I have just completed the router section that uses pushy/bidi and allows us to use urls like localhost:3000/sign-up and everything works correctly in dev mode. I can hit reload when it is at a path like localhost:3000/sign-up and it works as expected.

However, when I build a release app and try to do the same, it never works. I run npm run release and use any basic http server like basic-http-server public/ the app works only at the index page (localhost:3000). If I reload the page when it is at something like localhost:3000/sign-up or just go to that link directly while the server is running I get a 404 error.

Is this addressed later in the course or how can we go about getting this working right?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions