in container enabled durable objects, I keep getting the error:
This member cannot have an 'override' modifier because it is not declared in the base class 'DurableObject<Env, {}>'.
This member cannot have an 'override' modifier because it is not declared in the base class 'DurableObject<Env, {}>'.
// ... when starting the container...this.ctx.container.start({ workersAddress: '10.0.0.2:8080', enableInternet: false, // 'enableInternet' is false by default});// ... container requests to '10.0.0.2:8080' securely route to a different service...override async onContainerRequest(request: Request) { const containerId = this.env.SUB_SERVICE.idFromName(request.headers['X-Account-Id']); return this.env.SUB_SERVICE.get(containerId).fetch(request);}
// ... when starting the container...this.ctx.container.start({ workersAddress: '10.0.0.2:8080', enableInternet: false, // 'enableInternet' is false by default});// ... container requests to '10.0.0.2:8080' securely route to a different service...override async onContainerRequest(request: Request) { const containerId = this.env.SUB_SERVICE.idFromName(request.headers['X-Account-Id']); return this.env.SUB_SERVICE.get(containerId).fetch(request);}
Cloudflare Containers are coming this June. Run new types of workloads on our network with an experience that is simple, scalable, global and deeply integrated with Workers.