Move to escapement.warehack.ing; fix GFM tables in MDX
The landing page's headline results table was rendering as a paragraph of raw
pipe characters. Astro applies remark-gfm to .md but it wasn't reaching the MDX
pipeline, so every .md page rendered tables fine and only index.mdx was broken —
which is exactly why it went unnoticed. mdx({remarkPlugins:[remarkGfm]}) fixes it.
cuckoo.warehack.ing stays as a permanent redirect; it was live briefly.
This commit is contained in:
parent
3b505644b2
commit
674ad25662
9 changed files with 29 additions and 16 deletions
|
|
@ -10,16 +10,17 @@
|
|||
// when the dev server runs behind Caddy (TLS-terminating proxy) — without an
|
||||
// explicit host/protocol/clientPort, Vite's WebSocket drops every ~10s.
|
||||
//
|
||||
// Site URL comes from DOMAIN so one image serves both cuckoo.warehack.ing (prod)
|
||||
// and cuckoo.l.warehack.ing (local dev).
|
||||
// Site URL comes from DOMAIN so one image serves both escapement.warehack.ing (prod)
|
||||
// and escapement.l.warehack.ing (local dev).
|
||||
|
||||
import mdx from "@astrojs/mdx";
|
||||
import sitemap from "@astrojs/sitemap";
|
||||
import starlight from "@astrojs/starlight";
|
||||
import { defineConfig } from "astro/config";
|
||||
import remarkGfm from "remark-gfm";
|
||||
import starlightLinksValidator from "starlight-links-validator";
|
||||
|
||||
const domain = process.env.DOMAIN ?? "cuckoo.warehack.ing";
|
||||
const domain = process.env.DOMAIN ?? "escapement.warehack.ing";
|
||||
|
||||
export default defineConfig({
|
||||
site: `https://${domain}`,
|
||||
|
|
@ -99,7 +100,11 @@ export default defineConfig({
|
|||
pagination: true,
|
||||
lastUpdated: true,
|
||||
}),
|
||||
mdx(),
|
||||
// GFM tables do NOT render in .mdx without this, even though they work fine
|
||||
// in plain .md — Astro's remark-gfm doesn't reach the MDX pipeline here. The
|
||||
// failure is silent and ugly: the table falls through as a paragraph of raw
|
||||
// pipe characters. It shipped that way on the landing page. Don't remove.
|
||||
mdx({ remarkPlugins: [remarkGfm] }),
|
||||
sitemap(),
|
||||
],
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue