Skip to content

Commit e32ae10

Browse files
committed
Configure homepage in package.json and update deploy workflow to use gh-pages
1 parent d385877 commit e32ae10

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ jobs:
2323
npm run build
2424
2525
- name: Deploy 🚀
26-
uses: JamesIves/github-pages-deploy-action@v4
27-
with:
28-
branch: gh-pages
29-
folder: out
30-
token: ${{ secrets.GITHUB_TOKEN }}
26+
run: |
27+
git config --global user.name 'github-actions-bot'
28+
git config --global user.email 'support+actions@github.com'
29+
npx gh-pages -d build

next.config.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@ const nextConfig = {
33
output: 'export',
44
distDir: 'build',
55
basePath: '',
6-
assetPrefix: './_next/',
76
images: {
87
unoptimized: true,
98
},
109
};
1110

12-
export default nextConfig;
11+
export default nextConfig;

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "vaqm2.github.io",
33
"version": "0.1.0",
44
"private": true,
5+
"homepage": "https://vaqm2.github.io/",
56
"scripts": {
67
"dev": "next dev --turbopack",
78
"build": "next build",

0 commit comments

Comments
 (0)