- Relocate seed.sql to scripts/ so wrangler d1 migrations apply doesn't treat it as a migration; update package.json, setup.mjs, README, and all AGENTS.md references. - Add src/lib/schema-org.ts builders (LocalBusiness, FAQPage, BlogPosting, BreadcrumbList) and emit JSON-LD via Base.astro. - Add lastmod to sitemap entries. - Set real site domain, worker route, and D1/KV ids. - Improve image loading hints and heading semantics across site components; switch BlogIndex to client:idle.
20 lines
506 B
JavaScript
20 lines
506 B
JavaScript
import { defineConfig } from "astro/config";
|
|
import cloudflare from "@astrojs/cloudflare";
|
|
import react from "@astrojs/react";
|
|
|
|
export default defineConfig({
|
|
integrations: [react()],
|
|
// ⚠️ 上線前改咗呢個做你嘅真域名(sitemap、canonical、OG 全部靠佢)
|
|
site: "https://solar.develop-cat.com",
|
|
|
|
output: "static",
|
|
|
|
adapter: cloudflare({
|
|
platformProxy: {
|
|
enabled: true,
|
|
// 本機 astro dev 時讀 wrangler.jsonc 嘅 bindings
|
|
configPath: "./wrangler.jsonc",
|
|
},
|
|
}),
|
|
});
|