a tool for shared writing and social publishing

add disco to deploy appview! Thanks greg!!!

+33 -2
+11
appview/Dockerfile
··· 1 + FROM node:latest 2 + WORKDIR /code 3 + 4 + # start with dependencies to enjoy caching 5 + COPY ./package.json /code/package.json 6 + COPY ./package-lock.json /code/package-lock.json 7 + RUN npm ci 8 + 9 + # copy rest and build 10 + COPY . /code/. 11 + CMD ["npm", "run", "start-appview-prod"]
+1 -1
appview/index.ts
··· 12 12 import { AtUri } from "@atproto/syntax"; 13 13 import { writeFile, readFile } from "fs/promises"; 14 14 15 - const cursorFile = "./cursor"; 15 + const cursorFile = "/cursor/cursor"; 16 16 17 17 let supabase = createClient<Database>( 18 18 process.env.NEXT_PUBLIC_SUPABASE_API_URL as string,
+19
disco.json
··· 1 + { 2 + "version": "1.0", 3 + "services": { 4 + "worker": { 5 + "image": "appview", 6 + "volumes": [ 7 + { 8 + "name": "cursor", 9 + "destinationPath": "/cursor" 10 + } 11 + ] 12 + } 13 + }, 14 + "images": { 15 + "appview": { 16 + "dockerfile": "appview/Dockerfile" 17 + } 18 + } 19 + }
+2 -1
package.json
··· 7 7 "dev": "next dev", 8 8 "lexgen": "tsx ./lexicons/build.ts && lex gen-api ./lexicons/api ./lexicons/pub/leaflet/* ./lexicons/pub/leaflet/*/* ./lexicons/com/atproto/*/* --yes", 9 9 "wrangler-dev": "wrangler dev", 10 - "start-appview": "tsx --env-file='./.env.local' --watch appview/index.ts" 10 + "start-appview-dev": "tsx --env-file='./.env.local' --watch appview/index.ts", 11 + "start-appview-prod": "tsx appview/index.ts" 11 12 }, 12 13 "keywords": [], 13 14 "author": "",