Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ jobs:
DEPLOYMENT_ENV: ${{ github.event_name == 'merge_group' && 'production' || 'preview' }}
run: |
set -o pipefail
pnpm run build 2>&1 | tee build.log
pnpm run build:parallel 2>&1 | tee build.log
echo "succeeded=true" >> "$GITHUB_OUTPUT"

- name: Upload build artifact
Expand Down
6 changes: 6 additions & 0 deletions astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,12 @@ export default defineConfig({
},
experimental: {
incrementalBuild: process.env.INCREMENTAL_BUILD === "true" || false,
parallelPrerender:
process.env.PARALLEL_PRERENDER === "true"
? process.env.PARALLEL_WORKERS
? { workers: Number(process.env.PARALLEL_WORKERS) }
: true
: false,
},
markdown,
image: {
Expand Down
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
"prebuild": "pnpm run fetch:assets && pnpm run generate:config-reference",
"build": "astro build",
"build:incremental": "INCREMENTAL_BUILD=true astro build",
"build:parallel": "PARALLEL_PRERENDER=true PARALLEL_WORKERS=4 astro build",
"build:incremental:parallel": "INCREMENTAL_BUILD=true PARALLEL_PRERENDER=true PARALLEL_WORKERS=4 astro build",
"typegen:worker": "wrangler types ./worker/worker-configuration.d.ts",
"check": "pnpm run check:astro && pnpm run check:worker",
"check:astro": "astro check --minimumFailingSeverity=hint",
Expand Down Expand Up @@ -49,6 +51,8 @@
"generate:config-reference": "node bin/generate-cf-config-reference.mjs",
"prepare": "husky",
"prebuild:incremental": "pnpm run fetch:assets && pnpm run generate:config-reference",
"prebuild:parallel": "pnpm run fetch:assets && pnpm run generate:config-reference",
"prebuild:incremental:parallel": "pnpm run fetch:assets && pnpm run generate:config-reference",
"fetch:assets": "tsx bin/fetch-skills.ts && tsx bin/fetch-openapi.ts && tsx bin/fetch-logpush-datasets.ts",
"fetch:logpush": "tsx bin/fetch-logpush-datasets.ts --force",
"generate:labeler": "tsx bin/generate-labeler.ts"
Expand All @@ -58,7 +62,7 @@
"@actions/github": "9.1.1",
"@apidevtools/swagger-parser": "13.1.0",
"@astrojs/check": "0.9.10",
"@astrojs/cloudflare": "14.3.4",
"@astrojs/cloudflare": "14.4.0",
"@astrojs/markdown-satteri": "0.4.3",
"@astrojs/mdx": "^8.0.3",
"@astrojs/react": "^7.0.1",
Expand Down Expand Up @@ -98,7 +102,7 @@
"@types/react-dom": "19.0.4",
"@types/unist": "3.0.3",
"@typescript-eslint/parser": "8.71.2",
"astro": "7.3.8",
"astro": "7.4.0",
"cf": "0.15.0",
"cidr-tools": "13.0.4",
"clsx": "2.1.1",
Expand Down
Loading
Loading