but yea the adapter naming is a bit weird now. for worker assets on sveltekit you still use the page
but yea the adapter naming is a bit weird now. for worker assets on sveltekit you still use the pages adapter. not the worker one


import { DurableObject } from "cloudflare:workers";
export class Counter extends DurableObject<Env> {
async getCounterValue() {
const value: number = (await this.ctx.storage.get("value")) || 0;
return value;
}
}