21 lines
516 B
JavaScript
21 lines
516 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://example.com",
|
|
|
|
output: "static",
|
|
|
|
adapter: cloudflare({
|
|
platformProxy: {
|
|
enabled: true,
|
|
// 本機 astro dev 時讀 wrangler.jsonc 嘅 bindings
|
|
configPath: "./wrangler.jsonc",
|
|
},
|
|
}),
|
|
});
|