My landing page, written in Astro hayden.moe

feat: drop cloudflare references

hayden.moe 321e0320 5d4cb587

verified
+7 -61
-7
astro.config.mjs
··· 1 1 import { defineConfig } from 'astro/config'; 2 - import cloudflare from '@astrojs/cloudflare'; 3 2 import childProcess from "child_process"; 4 3 5 4 import tailwindcss from '@tailwindcss/vite'; ··· 13 12 export default defineConfig({ 14 13 site: 'https://hayden.moe', 15 14 16 - adapter: cloudflare({ 17 - imageService: 'cloudflare', 18 - platformProxy: { 19 - enabled: true, 20 - } 21 - }), 22 15 vite: { 23 16 plugins: [tailwindcss()], 24 17 define: {
+1 -8
bun.lock
··· 1 1 { 2 2 "lockfileVersion": 1, 3 + "configVersion": 0, 3 4 "workspaces": { 4 5 "": { 5 6 "dependencies": { 6 - "@astrojs/cloudflare": "^12.6.0", 7 7 "@astrojs/markdown-remark": "^6.3.3", 8 8 "@astrojs/rss": "^4.0.12", 9 9 "@atproto/api": "^0.15.26", ··· 14 14 "shiki": "^3.8.1", 15 15 }, 16 16 "devDependencies": { 17 - "@cloudflare/workers-types": "^4.20250722.0", 18 17 "@tailwindcss/postcss": "^4.0.0", 19 18 "@tailwindcss/typography": "^0.5.15", 20 19 "@tailwindcss/vite": "^4.1.11", ··· 36 35 37 36 "@ampproject/remapping": ["@ampproject/remapping@2.3.0", "", { "dependencies": { "@jridgewell/gen-mapping": "^0.3.5", "@jridgewell/trace-mapping": "^0.3.24" } }, "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw=="], 38 37 39 - "@astrojs/cloudflare": ["@astrojs/cloudflare@12.6.0", "", { "dependencies": { "@astrojs/internal-helpers": "0.6.1", "@astrojs/underscore-redirects": "1.0.0", "@cloudflare/workers-types": "^4.20250507.0", "tinyglobby": "^0.2.13", "vite": "^6.3.5", "wrangler": "^4.14.1" }, "peerDependencies": { "astro": "^5.0.0" } }, "sha512-pQ8bokC59GEiXvyXpC4swBNoL7C/EknP+82KFzQwgR/Aeo5N1oPiAoPHgJbpPya/YF4E26WODdCQfBQDvLRfuw=="], 40 - 41 38 "@astrojs/compiler": ["@astrojs/compiler@2.12.2", "", {}, "sha512-w2zfvhjNCkNMmMMOn5b0J8+OmUaBL1o40ipMvqcG6NRpdC+lKxmTi48DT8Xw0SzJ3AfmeFLB45zXZXtmbsjcgw=="], 42 39 43 40 "@astrojs/internal-helpers": ["@astrojs/internal-helpers@0.6.1", "", {}, "sha512-l5Pqf6uZu31aG+3Lv8nl/3s4DbUzdlxTWDof4pEpto6GUJNhhCbelVi9dEyurOVyqaelwmS9oSyOWOENSfgo9A=="], ··· 49 46 "@astrojs/rss": ["@astrojs/rss@4.0.12", "", { "dependencies": { "fast-xml-parser": "^5.2.0", "kleur": "^4.1.5" } }, "sha512-O5yyxHuDVb6DQ6VLOrbUVFSm+NpObulPxjs6XT9q3tC+RoKbN4HXMZLpv0LvXd1qdAjzVgJ1NFD+zKHJNDXikw=="], 50 47 51 48 "@astrojs/telemetry": ["@astrojs/telemetry@3.3.0", "", { "dependencies": { "ci-info": "^4.2.0", "debug": "^4.4.0", "dlv": "^1.1.3", "dset": "^3.1.4", "is-docker": "^3.0.0", "is-wsl": "^3.1.0", "which-pm-runs": "^1.1.0" } }, "sha512-UFBgfeldP06qu6khs/yY+q1cDAaArM2/7AEIqQ9Cuvf7B1hNLq0xDrZkct+QoIGyjq56y8IaE2I3CTvG99mlhQ=="], 52 - 53 - "@astrojs/underscore-redirects": ["@astrojs/underscore-redirects@1.0.0", "", {}, "sha512-qZxHwVnmb5FXuvRsaIGaqWgnftjCuMY+GSbaVZdBmE4j8AfgPqKPxYp8SUERyJcjpKCEmO4wD6ybuGH8A2kVRQ=="], 54 49 55 50 "@atproto/api": ["@atproto/api@0.15.26", "", { "dependencies": { "@atproto/common-web": "^0.4.2", "@atproto/lexicon": "^0.4.12", "@atproto/syntax": "^0.4.0", "@atproto/xrpc": "^0.7.1", "await-lock": "^2.2.2", "multiformats": "^9.9.0", "tlds": "^1.234.0", "zod": "^3.23.8" } }, "sha512-AdXGjeCpLZiP9YMGi4YOdK1ayqkBhklmGfSG8UefqR6tTHth59PZvYs5KiwLnFhedt2Xljt3eUlhkn14Y48wEA=="], 56 51 ··· 1405 1400 "zod-to-ts": ["zod-to-ts@1.2.0", "", { "peerDependencies": { "typescript": "^4.9.4 || ^5.0.2", "zod": "^3" } }, "sha512-x30XE43V+InwGpvTySRNz9kB7qFU8DlyEy7BsSTCHPH1R0QasMmHWZDCzYm6bVXtj/9NNJAZF3jW8rzFvH5OFA=="], 1406 1401 1407 1402 "zwitch": ["zwitch@2.0.4", "", {}, "sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A=="], 1408 - 1409 - "@astrojs/cloudflare/@cloudflare/workers-types": ["@cloudflare/workers-types@4.20250718.0", "", {}, "sha512-RpYLgb81veUGtlLQINwGldsXQDcaK2/Z6QGeSq88yyd9o4tZYw7dzMu34sHgoCeb0QiPQWtetXiPf99PrIj+YQ=="], 1410 1403 1411 1404 "@cspotcode/source-map-support/@jridgewell/trace-mapping": ["@jridgewell/trace-mapping@0.3.9", "", { "dependencies": { "@jridgewell/resolve-uri": "^3.0.3", "@jridgewell/sourcemap-codec": "^1.4.10" } }, "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ=="], 1412 1405
-2
package.json
··· 12 12 "typegen": "wrangler types" 13 13 }, 14 14 "dependencies": { 15 - "@astrojs/cloudflare": "^12.6.0", 16 15 "@astrojs/markdown-remark": "^6.3.3", 17 16 "@astrojs/rss": "^4.0.12", 18 17 "@atproto/api": "^0.15.26", ··· 23 22 "shiki": "^3.8.1" 24 23 }, 25 24 "devDependencies": { 26 - "@cloudflare/workers-types": "^4.20250722.0", 27 25 "@tailwindcss/postcss": "^4.0.0", 28 26 "@tailwindcss/typography": "^0.5.15", 29 27 "@tailwindcss/vite": "^4.1.11",
+2 -2
src/components/header.astro
··· 4 4 <div class="w-[10px] h-[21px] animate-blink bg-pink"></div> 5 5 </a> 6 6 7 - <a class="hover:text-base0E" href="/posts">posts</a> 8 - <a class="hover:text-base0E border-r! border-muted" href="/rss.xml">rss</a> 7 + <a class="hover:text-base0E" href="https://hayden.leaflet.pub">posts</a> 8 + <a class="hover:text-base0E" href="https://tangled.org/hayden.moe">git</a> 9 9 </nav>
+2 -15
src/pages/.well-known/webfinger.ts
··· 1 - import type { APIContext } from "astro"; 2 - 3 - export const prerender = false; 4 - 5 - export const GET = async (c: APIContext) => { 6 - const res = c.url.searchParams.get('resource'); 7 - if (!res) { 8 - return Response.json({ error: 'missing resource query' }, { status: 400 }); 9 - } 10 - 11 - if (!res.startsWith('acct:')) { 12 - return Response.json({ error: 'this endpoint only supports acct: resources' }, { status: 400 }); 13 - } 14 - 1 + export const GET = () => { 15 2 return Response.json({ 16 - subject: res, 3 + subject: 'acct:hayden@hayden.moe', 17 4 links: [ 18 5 { 19 6 rel: "http://openid.net/specs/connect/1.0/issuer",
-4
src/pages/posts/[rkey].astro
··· 1 - --- 2 - export const prerender = false; 3 - return Astro.redirect('https://hayden.leaflet.pub'); 4 - ---
-4
src/pages/posts/index.astro
··· 1 - --- 2 - export const prerender = false; 3 - return Astro.redirect('https://hayden.leaflet.pub'); 4 - ---
+1 -10
worker-configuration.d.ts
··· 1 1 /* eslint-disable */ 2 - // Generated by Wrangler by running `wrangler types` (hash: 84ee6b628f59e86744716c2b4c491a48) 2 + // Generated by Wrangler by running `wrangler types` (hash: 187132f48ddf0f604882ba8213fe386f) 3 3 // Runtime types generated with workerd@1.20250712.0 2025-07-18 nodejs_compat 4 4 declare namespace Cloudflare { 5 5 interface Env { 6 - CACHE: KVNamespace; 7 - ATP_IDENTIFIER: "hayden.moe"; 8 - ATP_SERVICE: "https://pds.hayden.moe/"; 9 6 ASSETS: Fetcher; 10 7 } 11 8 } 12 9 interface Env extends Cloudflare.Env {} 13 - type StringifyValues<EnvType extends Record<string, unknown>> = { 14 - [Binding in keyof EnvType]: EnvType[Binding] extends string ? EnvType[Binding] : string; 15 - }; 16 - declare namespace NodeJS { 17 - interface ProcessEnv extends StringifyValues<Pick<Cloudflare.Env, "ATP_IDENTIFIER" | "ATP_SERVICE">> {} 18 - } 19 10 20 11 // Begin runtime types 21 12 /*! *****************************************************************************
+1 -9
wrangler.toml
··· 12 12 pattern = "hbjy.dev" 13 13 custom_domain = true 14 14 15 - [vars] 16 - ATP_IDENTIFIER = "hayden.moe" 17 - ATP_SERVICE = "https://pds.hayden.moe/" 18 - 19 15 [observability] 20 - enabled = true 16 + enabled = false 21 17 22 18 [assets] 23 19 binding = "ASSETS" 24 20 directory = "./dist" 25 - 26 - [[kv_namespaces]] 27 - binding = "CACHE" 28 - id = "d7e88adf8eb44f7b9e0544b43bfb27b4"