Add configuration for BMad, Claude, OpenCode, and other AI agent tools and workflows.
36 lines
768 B
JavaScript
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;
|