Skip to content

Commit 71cdb63

Browse files
committed
fix ci
1 parent b154004 commit 71cdb63

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

.github/workflows/pages.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,13 @@ jobs:
5050

5151
- name: Build
5252
run: pnpm build
53+
env:
54+
NEXT_PUBLIC_BASE_PATH: /tinymlhack2024-docs
5355

5456
- name: Upload artifact
5557
uses: actions/upload-pages-artifact@v3
5658
with:
57-
path: ./docs/tinymlhack2024-docs/dist # Adjust this path to your build output directory
59+
path: ./out
5860

5961
deploy:
6062
environment:

next.config.js

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
1-
const withNextra = require('nextra')({
1+
import nextra from 'nextra'
2+
3+
const withNextra = nextra({
24
theme: 'nextra-theme-docs',
3-
themeConfig: './theme.config.tsx',
5+
themeConfig: './theme.config.jsx'
46
})
57

6-
module.exports = withNextra()
8+
export default withNextra({
9+
output: 'export',
10+
images: {
11+
unoptimized: true,
12+
},
13+
basePath: '/tinymlhack2024-docs'
14+
})

0 commit comments

Comments
 (0)