r/reactjs •

[deleted by user]

[deleted] — view deleted post

0 Upvotes

255 comments sorted by

View all comments

Show parent comment

1

u/Awnry_Abe Sep 22 '20

From the CRA docs:

Keep in mind that proxy only has effect in development (with npm start), and it is up to you to ensure that URLs like /api/todos point to the right thing in production. You don’t have to use the /api prefix. Any unrecognized request without a text/html accept header will be redirected to the specified proxy.

1

u/badboyzpwns Sep 22 '20

Got it! thank you again :)!! Removed that part in my post!