Skip to content

Question: How to proxy requests in production? #2386

Closed
@patwalls

Description

@patwalls

I feel like an idiot...

I have create-react-app and a Rails 5 API. All requests should hit the rails server, and I was able to use the proxy feature in package.json, which is awesome!

"proxy": "http://localhost:3001"

But how do I do this in production? In production my rails server can't live at the same domain as my create-react-app right, unless I am missing something?

Thanks for your help.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions