mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
24 lines
475 B
Cap'n Proto
24 lines
475 B
Cap'n Proto
using Workerd = import "/workerd/workerd.capnp";
|
|
|
|
const config :Workerd.Config = (
|
|
services = [
|
|
(name = "main", worker = .mainWorker),
|
|
],
|
|
|
|
sockets = [
|
|
( name = "http",
|
|
address = "*:3001",
|
|
http = (),
|
|
service = "main"
|
|
),
|
|
]
|
|
);
|
|
|
|
const mainWorker :Workerd.Worker = (
|
|
modules = [
|
|
(name = "worker", esModule = embed "react-hello-world.workerd.js"),
|
|
],
|
|
compatibilityDate = "2025-01-01",
|
|
compatibilityFlags = ["nodejs_compat_v2"],
|
|
);
|