Skip to content

npm run dev prevent api calls #20

Description

@allannaranjo

I used web-react as a boilerplate, when I build the app (npm run build) and then npm run start the app launches in the port 3000, in the root (http://localhost:3000/) I see the app being rendered and in the same port I can make calls to an api end point I created (GET http://localhost:3000/api/me).
However when I do npm run dev, the app loads in the port 8080 and it renders the front end in the root but if I do http://localhost:8080/api/me I get PAGE NOT FOUND.
Why is this happening?

Regards

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