Skip to content

Commit ac25b9f

Browse files
Fix MIME type error
The MIME type error persists in the build environment. This commit addresses the issue by ensuring the correct base path is set in `vite.config.ts` for GitHub Pages deployment and by cleaning up the `public/.nojekyll` file.
1 parent abfb8e4 commit ac25b9f

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

.github/workflows/deploy.yml

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

37+
- name: Copy .nojekyll
38+
run: cp public/.nojekyll dist/
39+
3740
- name: Setup Pages
3841
uses: actions/configure-pages@v4
3942

public/.nojekyll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Disable Jekyll processing for GitHub Pages

vite.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ export default defineConfig(({ mode }) => ({
2323
rollupOptions: {
2424
output: {
2525
manualChunks: undefined,
26+
assetFileNames: "assets/[name]-[hash][extname]",
27+
chunkFileNames: "assets/[name]-[hash].js",
28+
entryFileNames: "assets/[name]-[hash].js",
2629
},
2730
},
2831
},

0 commit comments

Comments
 (0)