Skip to content

Commit

Permalink
ci: update CI workflow to use bash shell and improve Docker options; …
Browse files Browse the repository at this point in the history
…enhance Astro config for SSR external dependencies
  • Loading branch information
erguotou520 committed Jan 1, 2025
1 parent b7e1736 commit 60de1a9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions packages/doc/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 60de1a9

Please sign in to comment.