mirror of
https://github.com/prdlk/leetcode.git
synced 2026-11-04 21:47:38 +00:00
feat(docs): move the site to prdcs.wiki on a Cloudflare Worker
Blume's cloudflare() adapter builds the docs as the prdcs-wiki Worker (apps/docs/wrangler.jsonc: name, prdcs.wiki custom domain), and deploy.yml ships it with wrangler instead of GitHub Pages. The SRS Worker's DOCS_URL / DOCS_ORIGIN, release links and README badge follow the new domain.
This commit is contained in:
1 parent
2835f618aa
commit
dd796acbae
15 files changed
+643
-212
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import { defineConfig } from "blume";
|
||||
import { cloudflare } from "blume/deploy";
|
||||
import type { StandardSchema } from "blume/core/standard-schema.ts";
|
||||
import { filesystem } from "blume/sources";
|
||||
import { APPENDIX } from "./appendix";
|
||||
@@ -6,7 +7,7 @@ import { RECENCY, type Company } from "./companies";
|
||||
import redirects from "./redirects";
|
||||
|
||||
// Blume's defaults (`inter`, `ibm-plex-mono`) are fetched from fonts.gstatic.com
|
||||
// on every build, which has timed out on the Pages runner and, fully offline,
|
||||
// on every build, which has timed out on the CI runner and, fully offline,
|
||||
// silently ships no fonts at all. The same two families from Fontsource, as
|
||||
// local files, keep the build network-free. Blume resolves `src` from this
|
||||
// directory; the workspace links these packages under ./node_modules.
|
||||
@@ -92,9 +93,14 @@ export default defineConfig({
|
||||
title: "prdlk",
|
||||
description: "Documentation for my LeetCode solutions",
|
||||
logo: "./public/logo.svg",
|
||||
deployment: {
|
||||
site: "https://lc.prd.lk",
|
||||
},
|
||||
// A Cloudflare Workers server build (`@astrojs/cloudflare`), deployed by
|
||||
// `wrangler deploy` with apps/docs/wrangler.jsonc (Worker name, the
|
||||
// prdcs.wiki custom domain). Every page still prerenders; the Worker adds
|
||||
// real HTTP redirects and `Accept: text/markdown` negotiation. Workers
|
||||
// exposes no site URL to detect, so `site` is required.
|
||||
deployment: cloudflare({
|
||||
site: "https://prdcs.wiki",
|
||||
}),
|
||||
github: {
|
||||
owner: "prdlk",
|
||||
repo: "leetcode",
|
||||
@@ -127,10 +133,10 @@ export default defineConfig({
|
||||
structuredData: true,
|
||||
x: { handle: "@prdlk" },
|
||||
},
|
||||
// Blume's own assistant route is server-rendered (it reads the provider key
|
||||
// per request), which a static Pages build cannot ship. The SRS Worker
|
||||
// answers instead (apps/api/src/ask.ts: OpenRouter, grounded on this site's
|
||||
// llms-full.txt, which `agents.llmsTxt` publishes).
|
||||
// Blume's own assistant route reads a provider key per request; the SRS
|
||||
// Worker already holds that key and answers instead (apps/api/src/ask.ts:
|
||||
// OpenRouter, grounded on this site's llms-full.txt, which `agents.llmsTxt`
|
||||
// publishes), so this Worker carries no secrets.
|
||||
ai: {
|
||||
assistant: {
|
||||
enabled: true,
|
||||
|
||||
Reference in new issue
Block a user