This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
const { exec, spawn } = require("child_process"); | |
const fs = require("fs"); | |
const { promisify } = require("util"); | |
import { WebSocket } from "ws"; | |
async function getWebSocketDebuggerUrl() { | |
const res = await fetch("http://localhost:9229/json"); | |
const data = await res.json(); | |
return data[0].webSocketDebuggerUrl; | |
} |
This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
https://www.dafontfree.net/freefonts-script12-bt-f141942.htm
https://github.com/be5invis/vscode-custom-css
sudo nano ~/.vscode/vs-code-styles.css