From 60de1a9252fe66bc1eec9764626f6aee88410cd1 Mon Sep 17 00:00:00 2001 From: erguotou Date: Wed, 1 Jan 2025 18:21:39 +0800 Subject: [PATCH] ci: update CI workflow to use bash shell and improve Docker options; enhance Astro config for SSR external dependencies --- .github/workflows/CI.yml | 2 +- packages/doc/astro.config.mjs | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index c39ed5d..4ee75b5 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -129,8 +129,8 @@ jobs: with: image: ${{ matrix.settings.docker }} options: '--user 0:0 -v ${{ github.workspace }}/.cargo-cache/git/db:/usr/local/cargo/git/db -v ${{ github.workspace }}/.cargo/registry/cache:/usr/local/cargo/registry/cache -v ${{ github.workspace }}/.cargo/registry/index:/usr/local/cargo/registry/index -v ${{ github.workspace }}:/build -w /build' + shell: bash run: | - set -e ${{ matrix.settings.prepare }} ${{ matrix.settings.build }} - name: Build diff --git a/packages/doc/astro.config.mjs b/packages/doc/astro.config.mjs index 0a618bc..896a0e9 100644 --- a/packages/doc/astro.config.mjs +++ b/packages/doc/astro.config.mjs @@ -4,6 +4,12 @@ import cloudflare from '@astrojs/cloudflare'; // https://astro.build/config export default defineConfig({ + vite: { + ssr: { + noExternal: ['@astrojs/starlight'], + external: ['node:path', 'node:url'] + } + }, integrations: [ starlight({ title: {