feat: switch to markdown content collections + remove emdash integration

- Remove emdash from astro.config.mjs (no more SSR/runtime)
- Remove emdash + @astrojs/node from package.json
- Switch output from 'server' to 'static'
- Rewrite src/content.config.ts with 6 collections:
  pages, services, portfolio, faq, settings, blog
- Keep live.config.ts as inert stub for build compat
- Push new content from content-temp/pages/ into src/content/pages/
  with full schema (title, subtitle, badge, hero_image, show_cta, cta_*, etc.)

Build: 18 static pages, 0 errors
This commit is contained in:
Macky
2026-06-03 14:14:35 +07:00
parent b7787cc403
commit 0faf75a9a2
4 changed files with 88 additions and 25 deletions

View File

@@ -2,26 +2,14 @@
import { defineConfig } from 'astro/config';
import react from "@astrojs/react";
import mdx from "@astrojs/mdx";
import node from "@astrojs/node";
import emdash, { local } from "emdash/astro";
import { sqlite } from "emdash/db";
// All content is markdown → static output. No server runtime needed.
export default defineConfig({
output: "server",
adapter: node({
mode: 'standalone'
}),
output: "static",
integrations: [
react(),
mdx(),
emdash({
database: sqlite({ url: "file:./data.db" }),
storage: local({
directory: "./uploads",
baseUrl: "/_emdash/api/media/file",
}),
}),
],
image: { layout: "constrained", responsiveStyles: true },
devToolbar: { enabled: true },
});
});