Programming
We provide developers and engineers the guides and tutorials they...
Search
We provide developers and engineers the guides and tutorials they...
Content is king. It's not just about how you're going to write, b...
Looking for an engaging connection with thousands of other people...
Laravel Cloud now hosts Go binaries and Node.js APIs built with Express or Hono, on Node, Bun or Deno. Setup, default commands and the PORT rule.
Laravel Cloud's move beyond PHP isn't only about Python. It now runs compiled Go services and plain Node.js APIs too, including Express and Hono apps on Node.js, Bun or Deno. Here's how each one deploys.
Also Read: Deploy Django, FastAPI & Flask on Laravel Cloud (Guide) - How To's
A go.mod file at the root of the app. There is no framework detection for Go because every Go app ends up as one compiled binary, whether you use Gin, Echo, Chi or the standard library.
Supported versions are Go 1.24, 1.25 and 1.26, with 1.26 as the default. Cloud reads the go directive in go.mod:
go 1.25
There is no version picker in the dashboard. Pin an unsupported version and Cloud falls back to the default and warns you in the build log.
Cloud pre-fills a build command that produces a small static binary:
CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o app .
The start command is simply ./app. If you rename the binary or build from a sub-package such as ./cmd/api, update both commands to match.
Note CGO_ENABLED=0: if your app relies on cgo (for example the mattn/go-sqlite3 driver), you'll need to adjust the build.
Read variables with os.Getenv. Cloud sets them on the process, so there's no .env file and no need for godotenv. Attached databases and caches arrive as DATABASE_URL and REDIS_URL.
A package.json at the app root. Express and Hono are detected from your dependencies. Anything else still runs as a generic Node.js app.
Cloud chooses the runtime from the files in your repo:
| Runtime | Detected by | Versions |
|---|---|---|
| Node.js | package-lock.json | 20, 22, 24 (24 default, selectable) |
| Bun | bun.lock, bun.lockb or bunfig.toml | 1.2 (fixed) |
| Deno | deno.json or deno.lock | 2.2.6 (fixed) |
The build command defaults to npm ci --audit false. Add npm run build if you compile TypeScript.
Also Read: Laravel Cloud Updates 2026: New Languages, Pricing & Features
The start command comes from the start script or main entry in package.json (for example node server.js), falling back to npm start, bun run start or deno task start.
Listen on the port Cloud gives you:
app.listen(process.env.PORT || 3000);
PORT defaults to 3000. Cloud also sets NODE_ENV=production and APP_URL on every deploy.
Go and Node.js apps get scale to zero, preview environments, custom domains, object storage and worker clusters. Managed queues and scheduled tasks remain Laravel and Symfony only, so run your own worker (BullMQ, Asynq and so on) on a worker cluster, or trigger jobs from a Laravel service on the same platform.
A common setup now looks like this, all from one monorepo:
api/ – Laravel, with managed queues and the schedulerweb/ – Next.js or Nuxt frontendrealtime/ or ingest/ – a Go or Hono service for the hot pathEach folder becomes its own Cloud application with its own scaling and domain, but you get one bill and one set of team permissions.
Can I choose the Go version in the dashboard? No. Set it with the go directive in go.mod.
Does Laravel Cloud support Bun and Deno? Yes. Bun 1.2 and Deno 2.2.6 are supported, detected from their lockfiles or config files.
What port should my app listen on? Whatever PORT is set to, 3000 by default.
Sources: Laravel Cloud quickstart (Go and Node.js tabs) · Laravel Cloud runtimes