Skip to content

Commit feb51c5

Browse files
committed
Fix GitHub Pages deployment configuration
- Remove basePath and assetPrefix from next.config.mjs - Add .nojekyll file to prevent Jekyll processing - Update GitHub Actions workflow to include .nojekyll in output
1 parent b238f6c commit feb51c5

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ jobs:
4444
- name: Build
4545
run: pnpm run build
4646

47+
- name: Add .nojekyll file
48+
run: touch out/.nojekyll
49+
4750
- name: Deploy
4851
uses: JamesIves/github-pages-deploy-action@v4
4952
with:

.nojekyll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

next.config.mjs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
/** @type {import('next').NextConfig} */
22
const nextConfig = {
33
output: 'export',
4-
basePath: process.env.GITHUB_ACTIONS ? '/herring101.github.io' : '',
5-
assetPrefix: process.env.GITHUB_ACTIONS ? '/herring101.github.io' : '',
64
images: {
75
unoptimized: true,
86
},

0 commit comments

Comments
 (0)