File
Blob: samples/helloworld-ts/config.capnp
| 1 | using Workerd = import "/workerd/workerd.capnp"; |
| 2 | |
| 3 | const helloWorldExample :Workerd.Config = ( |
| 4 | services = [ (name = "main", worker = .helloWorld) ], |
| 5 | sockets = [ ( name = "http", address = "*:8080", http = (), service = "main" ) ] |
| 6 | ); |
| 7 | |
| 8 | const helloWorld :Workerd.Worker = ( |
| 9 | modules = [ |
| 10 | (name = "worker", esModule = embed "worker.ts") |
| 11 | ], |
| 12 | compatibilityDate = "2025-08-01", |
| 13 | compatibilityFlags = ["typescript_strip_types"] |
| 14 | ); |