File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
src/content/docs/containers Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ Enhance your Workers with serverless containers
3333<Plan type = " workers-paid" />
3434
3535With Containers, you can build applications that integrate Workers with a serverless container runtime.
36+
3637Deploy your container image to Region:Earth without worrying about managing infrastructure - just define your
3738Worker and ` wrangler deploy ` .
3839
@@ -53,7 +54,6 @@ async fetch(request, env) {
5354}
5455
5556// define a durable object to run alongside your container
56-
5757export class MyContainer extends DurableObject {
5858 // start the container with the durable object
5959 constructor (ctx , env ) {
@@ -63,11 +63,10 @@ export class MyContainer extends DurableObject {
6363 );
6464 }
6565
66- // proxy requests to the container
67- async fetch (request ) {
68- return await proxyFetch (this .ctx .container , request, 4000 );
69- }
70-
66+ // proxy requests to the container
67+ async fetch (request ) {
68+ return await proxyFetch (this .ctx .container , request, 4000 );
69+ }
7170}
7271
7372````
You can’t perform that action at this time.
0 commit comments