GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix webdomain · klimkin/opencode@aeea84a

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • infra
    • app.ts
  • packages/function/src
    • api.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎infra/app.ts‎

Copy file name to clipboardExpand all lines: infra/app.ts
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ const bucket = new sst.cloudflare.Bucket("Bucket")
99
export const api = new sst.cloudflare.Worker("Api", {
1010
domain: `api.${domain}`,
1111
handler: "packages/function/src/api.ts",
12+
environment: {
13+
WEB_DOMAIN: domain,
14+
},
1215
url: true,
1316
link: [bucket],
1417
transform: {
Collapse file

‎packages/function/src/api.ts‎

Copy file name to clipboardExpand all lines: packages/function/src/api.ts
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { randomUUID } from "node:crypto"
44
type Env = {
55
SYNC_SERVER: DurableObjectNamespace<SyncServer>
66
Bucket: R2Bucket
7+
WEB_DOMAIN: string
78
}
89

910
export class SyncServer extends DurableObject<Env> {
@@ -127,7 +128,7 @@ export default {
127128
return new Response(
128129
JSON.stringify({
129130
secret,
130-
url: "https://opencode.ai/s/" + short,
131+
url: `https://${env.WEB_DOMAIN}/s/${short}`,
131132
}),
132133
{
133134
headers: { "Content-Type": "application/json" },

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.