We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Repro:
npm create cloudflare-latest
Paste from example:
import { DurableObject } from "cloudflare:workers"; import { Browsable } from "@outerbase/browsable-durable-object"; @Browsable() export class MyDurableObject extends DurableObject<Env> { public sql: SqlStorage; constructor(ctx: DurableObjectState, env: Env) { super(ctx, env); this.sql = ctx.storage.sql; } async fetch(request: Request): Promise<Response> { return new Response("Hello from MyDurableObject"); } } export default { async fetch( request: Request, env: Env, ctx: ExecutionContext, ): Promise<Response> { const path = new URL(request.url).pathname; const id: DurableObjectId = env.MY_DURABLE_OBJECT.idFromName(path); const stub = env.MY_DURABLE_OBJECT.get(id); return stub.fetch(request); }, } satisfies ExportedHandler<Env>;
npm run start
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Repro:
npm create cloudflare-latest
Paste from example:
npm run start
and access localhostThe text was updated successfully, but these errors were encountered: