Skip to content

Commit 8516d13

Browse files
christsoclaude
andauthored
fix: speed up docs build by switching to static output (#890)
* fix(web): switch docs site from SSR to static build Remove unnecessary server-side rendering setup that was slowing down Cloudflare Pages builds. The docs site doesn't need SSR — static output builds in ~20s vs timing out with the Cloudflare adapter. - Remove @astrojs/cloudflare adapter and output: 'server' - Remove unused sharp dependency (imageService was already 'passthrough') - Custom 404 page continues to work via static 404.html Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix(core): make claude-agent-sdk an optional peer dependency Move @anthropic-ai/claude-agent-sdk from dependencies to optional peerDependencies, matching the pattern used by pi-coding-agent. Add local type declaration so typecheck passes without the package installed. The SDK is already lazy-loaded at runtime. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * chore: update lockfile after removing unused dependencies Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix(web): use noop image service after removing sharp Astro's default image service requires sharp. Since we removed it, configure the noop service to pass images through without processing. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 51ea61c commit 8516d13

5 files changed

Lines changed: 53 additions & 368 deletions

File tree

apps/web/astro.config.mjs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
import cloudflare from '@astrojs/cloudflare';
21
import starlight from '@astrojs/starlight';
32
import { defineConfig } from 'astro/config';
43

54
export default defineConfig({
65
site: 'https://agentv.dev',
7-
output: 'server',
8-
adapter: cloudflare({ imageService: 'passthrough' }),
6+
image: { service: { entrypoint: 'astro/assets/services/noop' } },
97
integrations: [
108
starlight({
119
title: 'agent v',

apps/web/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
},
1010
"dependencies": {
1111
"astro": "^5.7.0",
12-
"@astrojs/starlight": "^0.34.0",
13-
"@astrojs/cloudflare": "^12.0.0",
14-
"sharp": "^0.33.0"
12+
"@astrojs/starlight": "^0.34.0"
1513
}
1614
}

0 commit comments

Comments
 (0)