2026-07-04 23:06:23 +00:00
|
|
|
import { readFileSync } from "node:fs";
|
2026-07-04 22:53:10 +00:00
|
|
|
import { defineConfig } from "astro/config";
|
2026-07-04 23:06:23 +00:00
|
|
|
|
|
|
|
|
const siteConfig = JSON.parse(
|
|
|
|
|
readFileSync(new URL("./src/config/site.json", import.meta.url)),
|
|
|
|
|
);
|
2026-07-04 22:53:10 +00:00
|
|
|
import mdx from "@astrojs/mdx";
|
|
|
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
|
|
|
|
|
|
|
|
const site =
|
2026-07-04 23:06:23 +00:00
|
|
|
process.env.SITE_URL || process.env.PUBLIC_SITE_URL || siteConfig.url;
|
2026-07-04 22:53:10 +00:00
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
site,
|
chore: remove proprietary agent framework (agents/ + astroagent) from seed
The Node content pipeline (agents/) and the astroagent in-site authoring
console are a proprietary, CLI-strategy agent system that shouldn't ship in
the cloneable SeedProject base. Remove both and all their wiring:
- Delete agents/ (pipeline scripts, prompts, admin server, libs) + runtime
- Delete astroagent config, app/.astroagent/ skill, DevConsole component;
unhook it from BaseLayout.astro and astro.config.mjs preview env logic
- Delete api/cli/resources.php (DB->pipeline resource bridge)
- Drop agent blocks from configure.mjs, agent runtime rules from .gitignore,
topic/audience from site.config.json, agent prompts from new-site.sh
- Strip agent sections from AGENTS.md / README.md / api/.memory/foundation.md
Kept: api/app/LLM/* (API-key/REST multi-provider layer — distinct from the
CLI agents), api/cli/rebuild.php, and the mde_resources schema.
Frontend build verified (npm run build → 14 pages).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DfzaSFv5okUxCCdvq5RXu1
2026-07-24 15:54:51 +00:00
|
|
|
outDir: "../public",
|
2026-07-04 22:53:10 +00:00
|
|
|
integrations: [mdx()],
|
|
|
|
|
vite: {
|
|
|
|
|
plugins: [tailwindcss()],
|
|
|
|
|
build: {
|
|
|
|
|
emptyOutDir: false,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
});
|