Skip to content

Commit ca120aa

Browse files
committed
Add .node-version file, refactor nextra initialization, and create vercel.json for deployment configuration
1 parent 54a05e7 commit ca120aa

3 files changed

Lines changed: 9 additions & 5 deletions

File tree

.node-version

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

next.config.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
const nextraRaw = require('nextra');
2-
const nextra = typeof nextraRaw === 'function' ? nextraRaw : nextraRaw.default || nextraRaw;
3-
4-
const withNextra = nextra({
1+
const withNextra = require('nextra')({
52
theme: 'nextra-theme-docs',
63
themeConfig: './theme.config.tsx'
7-
});
4+
})
85

96
module.exports = withNextra({
107
async redirects() {

vercel.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"installCommand": "pnpm install",
3+
"buildCommand": "pnpm run build"
4+
}
5+

0 commit comments

Comments
 (0)