mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
* WIP * WIP * WIP * WIP * Improve typechecking in type files * Fix typechecking * Update * Update submodule * CI for typechecking * Add ci * Update commands * Format after build * Dont use bunx * Rename job * Use nodemodules prettier * Update workflow * Use symlink * Debug * Debug * Clean up and rename jobs
16 lines
455 B
TypeScript
16 lines
455 B
TypeScript
import { resolve } from "path";
|
|
import type { ServeOptions } from "bun";
|
|
|
|
const development = process.env.NODE_ENV !== "production";
|
|
export default {
|
|
fetch(req: Request) {
|
|
return new Response(Bun.file(resolve(req.url.substring(1))));
|
|
},
|
|
|
|
// 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 ServeOptions;
|