Commit 75db0bbe authored by Aral Balkan's avatar Aral Balkan
Browse files

Revert code examples in readme to CommonJS format for time being

parent 20af9b03
......@@ -39,7 +39,7 @@ npm i @small-tech/https
### At localhost with automatically-provisioned development certificates via mkcert.
import https from '@small-tech/https'
const https = require('@small-tech/https')
const server = https.createServer((request, response) => {
response.end('Hello, world!')
......@@ -55,8 +55,8 @@ Hit `https://localhost` and you should see your site with locally-trusted TLS ce
### At hostname with automatically-provisioned Let’s Encrypt certificates.
import https from '@small-tech/https'
import os form 'os'
const https = require('@small-tech/https')
const os = require('os')
const hostname = os.hostname()
const options = { domains: [hostname] }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment