Does react studio support https or SSL cert import when open in browser testing via studio app


#1

i wanted to test build with https in mind as well

i did generate certs but i didnt know where to exactly put them

https://hackernoon.com/set-up-ssl-in-nodejs-and-express-using-openssl-f2529eab5bb 2

i saw there is a server.js file but not sure if editing that disrupts stuff and not sure if theres a place to upload it as well . (use cases to test back/forth )

https.createServer({
key: fs.readFileSync(’./site.key’),
cert: fs.readFileSync(’./site.cert’),
passphrase: ‘YOUR PASSPHRASE HERE’
}, app)


#2

i see when mobile preview posts its HTTPS (is there a way we can open-in browser and get it to auto ssl https)


#3

I dont think we can automatically do this in Studio. Https requires certificates etc.

You can always click export and run the app manually from terminal. It’s not that much more work, basically just run npm start in the app directory.