BIENVENUE10valid for the first month only! on all offersView plans
Skip to content
← Knowledge base

Deploy a Bun application on onesubnet

Deploy a JavaScript app with Bun: install, start, port and environment variables.

Deploy a Bun application on onesubnet

onesubnet runs your JavaScript/TypeScript applications via Bun (ultra-fast runtime, Node.js compatible). Deploy via Git.

1. Prepare the project

  • A package.json with a start script, and @types/bun if using TypeScript.
  • Listen on the port from the PORT variable:
const port = Number(process.env.PORT ?? 3000)
Bun.serve({ port, fetch: () => new Response("Hello from Bun") })

2. Deploy

  1. Connect your Git repository in the panel.
  2. Build command: bun install
  3. Start command: bun run src/index.ts (or bun start).

3. Environment variables

In Settings → Environment (connection string, secrets…). Access via process.env or Bun.env.

4. Logs

Live console in the panel.

References

Related products

oneSubnet

French hosting provider in Paris. High-performance game and voice servers.

SERVICES

Resources

LEGAL

All systems operational