···22import { Hono } from "hono";
33import { cache } from "hono/cache";
44import { csrf } from "hono/csrf";
55+import isEmpty from "just-is-empty";
56import { ContextVariables, createAuth } from "./auth";
67import { ScheduledContext } from "./classes/context";
78import { account } from "./endpoints/account";
···2021import ResetPassword from "./pages/reset";
2122import Signup from "./pages/signup";
2223import TermsOfService from "./pages/tos";
2323-import { SITE_URL } from "./siteinfo";
2424+import { ATPROTO_DID, SITE_URL } from "./siteinfo";
2425import { Bindings, QueueTaskData } from "./types";
2526import { makeConstScript } from "./utils/constScriptGen";
2627import { processQueue } from "./utils/queues/queueHandler";
···39404041// Root route
4142app.all("/", staticPagesCache, (c) => c.html(<Homepage />));
4343+4444+// atproto registration route
4545+if (!isEmpty(ATPROTO_DID)) {
4646+ app.get("/.well-known/atproto-did", staticFilesCache, (c) => c.text(ATPROTO_DID, 200));
4747+}
42484349// JS injection of const variables
4450app.get("/js/consts.js", staticFilesCache, (c) => {
+3
src/siteinfo.ts
···2121// This line shows up on the dashboard when the user logs in, located under the logo.
2222export const DASHBOARD_TAG_LINE: string = "Schedule Bluesky posts effortlessly";
23232424+// The atproto did for the /.well-known/ path. Leave blank for no support.
2525+export const ATPROTO_DID: string = "did:plc:ecfcvvlqmadysyik3thlbs3c";
2626+2427// If the logo image should be rendered on the site.
2528export const LOGO_ENABLED: boolean = true;
2629
+1-1
src/utils/appScripts.ts
···11// Change this value to break out of any caching that might be happening
22// for the runtime scripts (ex: main.js & postHelper.js)
33-export const CURRENT_SCRIPT_VERSION: string = "1.6.4";
33+export const CURRENT_SCRIPT_VERSION: string = "1.6.5";
4455export const getAppScriptStr = (scriptName: string) => `/js/${scriptName}.min.js?v=${CURRENT_SCRIPT_VERSION}`;
66