Skip to content

Commit 525ea4c

Browse files
committed
fix: update config
1 parent a88b847 commit 525ea4c

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
uses: actions/setup-node@v4
1818
with:
1919
node-version: 20
20+
- name: Clean dist
21+
run: rm -rf ./dist && npm run build
2022
- name: Install dependencies
2123
run: npm ci
2224
- name: Build Astro
@@ -25,7 +27,10 @@ jobs:
2527
uses: actions/upload-artifact@v4
2628
with:
2729
name: github-pages
28-
path: ./dist
30+
path: |
31+
./dist
32+
!./dist/**/*.DS_Store
33+
!./dist/**/.git*
2934
release:
3035
needs: deploy
3136
runs-on: ubuntu-latest

astro.config.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ import { defineConfig, passthroughImageService } from 'astro/config';
1111
export default defineConfig({
1212
vite: {
1313
build: {
14-
sourcemap: false
14+
sourcemap: false,
15+
rollupOptions: {
16+
preserveSymlinks: false,
17+
},
1518
}
1619
},
1720
image: {

0 commit comments

Comments
 (0)