DEV Community

prakashg-dev
prakashg-dev

Posted on

Local certificate configure

Need to configure and use localhost development with

https

I tried the below updates in the workspace.json file but still when I do yarn start, it opens only with

http://localhost:443

"ssl": true,
"sslKey": "config/key.pem",
"sslCert": "config/cert.pem",
"port": 443

Can somebody help me to sort this out please?

Thanks in advance!

Top comments (2)

Collapse
 
prakashgdev profile image
prakashg-dev

Here is my complete serve in workspace.json

"builder": "@nrwl/next:server",
"options": {
"buildTarget": "alu:build",
"ssl": true,
"sslKey": "config/key.pem",
"sslCert": "config/cert.pem",
"port": 443
},

Collapse
 
prakashgdev profile image
prakashg-dev

Do anyone suggest please?