mirror of
https://github.com/oven-sh/bun
synced 2026-02-15 13:22:07 +00:00
Fix ssl example
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user