Skip to content

Commit 75c236d

Browse files
committed
fixes
1 parent dcf84dc commit 75c236d

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

MyApp.Client/components/nav.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ export default function () {
3131
].filter(x => !!x))
3232
} else {
3333
items.push({ type:'Button', href:"/signin", name:"Sign In" })
34-
items.push({ type:'PrimaryButton', href:"/signup", name:"Register" })
3534
}
3635

3736
return (<header className="border-b border-gray-200 dark:border-gray-700 pr-3 bg-white dark:bg-gray-800">
Lines changed: 4 additions & 1 deletion
Loading

MyApp.Client/server.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { createServer } from 'http'
1+
import { createServer } from 'https'
22
import { parse } from 'url'
33
import next from 'next'
44
import { createProxyMiddleware } from 'http-proxy-middleware'
@@ -77,7 +77,12 @@ const apiProxy = createProxyMiddleware({
7777
})
7878

7979
app.prepare().then(() => {
80-
createServer(async (req, res) => {
80+
const serverOptions = dev ? {
81+
key: fs.readFileSync(keyFilePath),
82+
cert: fs.readFileSync(certFilePath),
83+
} : {};
84+
85+
createServer(serverOptions, async (req, res) => {
8186
try {
8287
const parsedUrl = parse(req.url, true)
8388
const { pathname } = parsedUrl
@@ -100,7 +105,7 @@ app.prepare().then(() => {
100105
process.exit(1)
101106
})
102107
.listen(port, () => {
103-
console.log(`> Ready on http://${hostname}:${port}`)
108+
console.log(`> Ready on https://${hostname}:${port}`)
104109
console.log(`> Proxying /api requests to ${target}`)
105110
})
106111
})

0 commit comments

Comments
 (0)