Files
website-enchun-mgr/.opencode/skills/astro-cloudflare-deploy/assets/astro.config.ssr.mjs
pkupuk ad8e2e313e chore(agent): configure AI agents and tools
Add configuration for BMad, Claude, OpenCode, and other AI agent tools and workflows.
2026-02-11 11:51:23 +08:00

36 lines
768 B
JavaScript

// Full SSR configuration - All routes server-rendered
// Use this for web apps with authentication, dynamic content on all pages
import { defineConfig } from 'astro/config';
import cloudflare from '@astrojs/cloudflare';
export default defineConfig({
output: 'server',
adapter: cloudflare({
mode: 'directory',
imageService: 'passthrough',
platformProxy: {
enabled: true,
configPath: './wrangler.jsonc',
},
}),
// Optional: Add integrations
// integrations: [
// tailwind(),
// react(),
// viewTransitions(),
// ],
vite: {
build: {
chunkSizeWarningLimit: 1000,
},
},
});
// All pages are server-rendered by default.
// Access Cloudflare bindings with:
// const env = Astro.locals.runtime.env;