Files
com.gregkilmer.www/services/site/astro.config.mjs
T
Claude 99ecdc2113 Phase 5: every page of the site, the resume PDF and RSS
Landing, About, Now, Resume (with a generated PDF), Work and case studies,
Inquiries and the sent page, Library and the Shelf, Workshop and craft pages,
Tabletop, Blog with topics and posts, RSS, the Store, product lines, the
order form and the 404, all rendered from the content service's notes.

Schema: experience previousRoles, skills stack core items, page stats,
make tags and deck favorite. Icon names from notes map to brand icons in one
place, and HTML comments are dropped when Markdown renders.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012aSbo2D1qP8cMFQCykf7kx
2026-10-11 21:33:49 +00:00

20 lines
814 B
JavaScript

// The public site. Pages render on request from the content service's
// published notes, so a saved note is live within a minute without a rebuild.
import node from "@astrojs/node";
import { defineConfig } from "astro/config";
export default defineConfig({
output: "server",
adapter: node({ mode: "standalone" }),
trailingSlash: "never",
build: { format: "file", assets: "assets" },
devToolbar: { enabled: false },
server: { host: true, port: Number(process.env.PORT ?? 4330) },
vite: {
// cookie is bundled so the server never picks up express's older copy hoisted to the root.
ssr: { noExternal: ["@gk/ui", "cookie"] },
// See packages/ui/astro.config.mjs: astro needs its own cookie, not express's.
environments: { prerender: { resolve: { noExternal: ["cookie"] } } },
},
});