Skip to content

Commit 01c5b38

Browse files
committed
chore: test github pages
1 parent aa95e0b commit 01c5b38

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ jobs:
3232

3333
- name: Build
3434
run: npm run build
35+
36+
- name: Add .nojekyll file
37+
run: touch ./out/.nojekyll
3538

3639
- name: Setup Pages
3740
uses: actions/configure-pages@v4

next.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const config: NextConfig = {
1515
images: {
1616
unoptimized: true,
1717
},
18-
assetPrefix: isProduction ? '/' : '',
18+
assetPrefix: '.',
1919
basePath: '',
2020
trailingSlash: true,
2121
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"type": "module",
33
"scripts": {
44
"dev": "next",
5-
"build": "next build",
5+
"build": "next build && touch out/.nojekyll",
66
"start": "next start",
77
"export": "next export",
88
"deploy": "next build && touch out/.nojekyll"

0 commit comments

Comments
 (0)