bun
bun copied to clipboard
Use Runtime API Interface
Description
Addresses the issue: https://github.com/vercel-community/bun/issues/1
I essentially just copied over my repo containing the Bun runtime implemented via Vercel's Runtime API.
However, the following files are not exactly the same:
- example/api/index.ts (uses a simpler request handler)
- example/package.json (removed Elysia as a dependency)
- example/vercel.json (uses
[email protected]instead of@godsreveal/[email protected]) - src/build.ts (updated the User-Agent header for the bun binary download)
- .gitignore (used this project's and ignored the dist directory)
- package.json (used this project's, added some required fields, a description, and incremented the version)
- README.md (used this project's, updated the serverless function structure, added GH integration, updated manual deployment)
Recommended Deployment Procedure
- Publish new version of package.
- Verify Vercel preview deployment downloads this package, builds, and deploys successfully.
- Verify /api route works correctly at preview deployment.
- Merge this PR to main.