diff options
-rw-r--r-- | examples/bun/ssl.ts | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/examples/bun/ssl.ts b/examples/bun/ssl.ts index c3e73bd84..df30a0bd6 100644 --- a/examples/bun/ssl.ts +++ b/examples/bun/ssl.ts @@ -3,13 +3,12 @@ import { resolve } from "path"; const development = process.env.NODE_ENV !== "production"; export default { fetch(req: Request) { - Bun.file; return new Response(Bun.file(resolve(req.url.substring(1)))); }, - // hostname: "0.0.0.0", - // port: parseInt(process.env.PORT || "443", 10), - // keyFile: process.env.SSL_KEY_FILE || "./key.pem", - // certFile: process.env.SSL_CERTIFICATE_FILE || "./cert.pem", + // hostname: "0.0.0.0", + port: process.env.PORT || "443", + keyFile: process.env.SSL_KEY_FILE || "./key.pem", + certFile: process.env.SSL_CERTIFICATE_FILE || "./cert.pem", development, } as Bun.Serve; |