diff --git a/scripts/prerender-meta.mjs b/scripts/prerender-meta.mjs index 30103cf..df6cac7 100644 --- a/scripts/prerender-meta.mjs +++ b/scripts/prerender-meta.mjs @@ -12,8 +12,7 @@ const DEFAULTS = { BLOG_SITE_URL: "https://hyperzine.xyz", BLOG_DEFAULT_DESCRIPTION: "hyperzine", ARWEAVE_GATEWAY: "https://arweave.net", - MANIFEST_REFERENCE_NAME: "", - MANIFEST_TX_ID: "" + MANIFEST_REFERENCE_NAME: "" }; const asObject = (value) => (typeof value === "object" && value !== null ? value : null); @@ -54,8 +53,7 @@ const parseConfig = async () => { BLOG_SITE_URL: pick("BLOG_SITE_URL"), BLOG_DEFAULT_DESCRIPTION: pick("BLOG_DEFAULT_DESCRIPTION"), ARWEAVE_GATEWAY: pick("ARWEAVE_GATEWAY"), - MANIFEST_REFERENCE_NAME: pick("MANIFEST_REFERENCE_NAME"), - MANIFEST_TX_ID: pick("MANIFEST_TX_ID") + MANIFEST_REFERENCE_NAME: pick("MANIFEST_REFERENCE_NAME") }; }; @@ -132,7 +130,6 @@ const fetchManifestPosts = async (config, manifestTxId) => { }; const resolveManifestTxId = async (config) => { - if (config.MANIFEST_TX_ID) return config.MANIFEST_TX_ID; if (!config.MANIFEST_REFERENCE_NAME) return ""; const names = new ReferenceClient({ gateway: config.ARWEAVE_GATEWAY || DEFAULTS.ARWEAVE_GATEWAY }); const value = await names.resolveName(config.MANIFEST_REFERENCE_NAME); diff --git a/src/config.ts b/src/config.ts index c4a6919..96a7eab 100644 --- a/src/config.ts +++ b/src/config.ts @@ -5,9 +5,6 @@ export const BLOG_DEFAULT_DESCRIPTION = "A blog about cyberspace decentralization"; export const BLOG_TWITTER_HANDLE = ""; export const MANIFEST_REFERENCE_NAME = "mystic"; -// Pinned manifest. When set, the site loads this manifest instead of -// resolving the reference. Blank it to go back to reference resolution. -export const MANIFEST_TX_ID = "W6EqQbl9kdM7nqiqhCclZnZEQJs0Rr7sDz-N2ou4TLM"; export const ARWEAVE_GATEWAY = "https://arweave.net"; export const AO_URL = "https://push-1.forward.computer"; diff --git a/src/lib.ts b/src/lib.ts index 2cb4f18..bb5503e 100644 --- a/src/lib.ts +++ b/src/lib.ts @@ -2,7 +2,7 @@ import DOMPurify from "dompurify"; import { marked, type Tokens } from "marked"; import { parse as parseYaml } from "yaml"; import { ReferenceClient } from "@permaweb/references"; -import { ARWEAVE_GATEWAY, MANIFEST_REFERENCE_NAME, MANIFEST_TX_ID } from "./config"; +import { ARWEAVE_GATEWAY, MANIFEST_REFERENCE_NAME } from "./config"; import { parseManifest, type Frontmatter, type ManifestPost } from "./types"; const formatDate = (date: string): string => @@ -111,7 +111,6 @@ const loadReferenceManifest = async () => { }; const loadCurrentManifest = async () => { - if (MANIFEST_TX_ID) return fetchManifest(MANIFEST_TX_ID); return loadReferenceManifest(); };