File tree Expand file tree Collapse file tree 3 files changed +12
-5
lines changed
Expand file tree Collapse file tree 3 files changed +12
-5
lines changed Original file line number Diff line number Diff 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" >
Original file line number Diff line number Diff line change 1- import { createServer } from 'http '
1+ import { createServer } from 'https '
22import { parse } from 'url'
33import next from 'next'
44import { createProxyMiddleware } from 'http-proxy-middleware'
@@ -77,7 +77,12 @@ const apiProxy = createProxyMiddleware({
7777} )
7878
7979app . 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} )
You can’t perform that action at this time.
0 commit comments