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;
/td>
index : bun | |
Unnamed repository; edit this file 'description' to name the repository. | |
Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
* Add test for stat on a large file
* Update fs.test.ts
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
|
|
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
|
|
|
|
|
|
|
|
Fixes #3868
Fixes #849
|
|
files
|
|
|
|
|
|
* copy and format
* copy
* copy
* cleanup
* some tests
* spellcheck
* add types
* don't lock getting contextId
* array buffer test
|
|
|
|
* add fork to child_process
* fix export
* add test to child_process method `fork`
* fmt fork
* remove only from test
|
|
* Impl. pass & fail
* fix
* fix 2
* smol
|
|
* fix the slice boundary.
Close: #3668
* Add more boundary test case.
* fix end is 0.
|
|
* Support file: URLs in `fetch`
* Update url.zig
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
|
|
* exposes native canonicalizeIP
* remove unintended duplicate
* add tests
* add tests for debug builds
* add rootCertificates test and fix len
* just randomize test ids on prisma
* remove work around and bump usockets with the actual fix
* fix case
* bump uws
|
|
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
|
|
cc @cirospaciari
|
|
|
|
|
|
* Uncomment test
* Fix bug with // @bun + async transpiler
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
|
|
|
|
|
|
fixes (#3846)
* linux working pending tests with FSEvents
* add more tests, fix async iterator
* remove unnecessary check
* fix macos symlink on directories
* remove indirection layer
* todos
* fixes and some permission test
* fix opsie and make prisma test more reliable
* rebase with main
* add comptime check for macOS
* oops
* oops2
* fix symlinks cascade on FSEvents
* use JSC.WorkPool
* use withResolver, createFIFO and fix close event on async iterator
* remove unused events
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
|
|
|
|
|
|
|
|
|
|
|
|
|