Skip to content
File

Blob: samples/filesystem/config.capnp

486 bytes
1using Workerd = import "/workerd/workerd.capnp";
2 
3const helloWorldExample :Workerd.Config = (
4 services = [ (name = "main", worker = .helloWorld) ],
5 
6 sockets = [ ( name = "http", address = "*:8080", http = (), service = "main" ) ]
7);
8 
9const helloWorld :Workerd.Worker = (
10 modules = [
11 (name = "worker", esModule = embed "worker.js")
12 ],
13 compatibilityDate = "2025-07-01",
14 compatibilityFlags = [
15 "nodejs_compat",
16 "enable_web_file_system",
17 "experimental",
18 ],
19);