Skip to content

Commit c515891

Browse files
Fix GitHub Pages deployment MIME type issue by adding .nojekyll file
1 parent 4ca7d6e commit c515891

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ jobs:
3535
- name: Build
3636
run: npm run build
3737

38+
- name: Add .nojekyll file
39+
run: touch ./dist/.nojekyll
40+
3841
- name: Upload artifact
3942
uses: actions/upload-pages-artifact@v3
4043
with:

.nojekyll

Whitespace-only changes.

vite.config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ export default defineConfig({
88
open: true
99
},
1010
build: {
11-
outDir: '../dist'
11+
outDir: '../dist',
12+
assetsDir: 'assets',
13+
rollupOptions: {
14+
output: {
15+
manualChunks: undefined
16+
}
17+
}
1218
}
1319
})

0 commit comments

Comments
 (0)