How can I provide a SSL certificate with create-react-app?

后端 未结 6 1411
南方客
南方客 2020-12-04 16:32


I am trying to host a react app I created and tested locally using the facebook boilerplate.
The client app interacts with an API I made using node.js, and with

6条回答
  •  甜味超标
    2020-12-04 17:14

    Here is the webpack config of react-scripts when using HTTPS=true along side SSL_CRT_FILE & SSL_CRT_FILE. So you should just be able to add it to the env to set the paths to your cert.

提交回复
热议问题