How can I develop locally using a domain name instead of 'localhost:3000' in the url with create-react-app?

后端 未结 4 1544
野性不改
野性不改 2021-01-13 07:26

I have been developing a small app with create-react-app and a few other libraries i added. Given the planned architecture and some tests i\'d like to run with react-router,

4条回答
  •  情书的邮戳
    2021-01-13 07:58

    you can change the port by adding

    "scripts": {
        "start": "set PORT=8080 && react-scripts start"
    }
    

    but there is no other way to change the IP address when you are developing locally.i also tried to do that.

提交回复
热议问题