mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-29 21:19:48 +00:00
wip: cloud
This commit is contained in:
parent
47d4c87bdd
commit
810c9cff1d
33 changed files with 579 additions and 2197 deletions
|
|
@ -10,6 +10,7 @@ import { Account } from "@opencode/cloud-core/account.js"
|
|||
import { Workspace } from "@opencode/cloud-core/workspace.js"
|
||||
import { Actor } from "@opencode/cloud-core/actor.js"
|
||||
import { Resource } from "@opencode/cloud-resource"
|
||||
import { Database } from "@opencode/cloud-core/drizzle/index.js"
|
||||
|
||||
type Env = {
|
||||
AuthStorage: KVNamespace
|
||||
|
|
@ -33,7 +34,7 @@ const MY_THEME: Theme = {
|
|||
|
||||
export default {
|
||||
async fetch(request: Request, env: Env, ctx: ExecutionContext) {
|
||||
return issuer({
|
||||
const result = await issuer({
|
||||
theme: MY_THEME,
|
||||
providers: {
|
||||
github: GithubProvider({
|
||||
|
|
@ -135,5 +136,6 @@ export default {
|
|||
return ctx.subject("account", accountID, { accountID, email })
|
||||
},
|
||||
}).fetch(request, env, ctx)
|
||||
return result
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue