Skip to content
This repository was archived by the owner on May 11, 2026. It is now read-only.

Commit 483cf4c

Browse files
authored
Merge pull request #6 from snaplet/docs/netlify
Docs: Config Netlify
2 parents 8a11d24 + 9f955b3 commit 483cf4c

3 files changed

Lines changed: 20 additions & 1 deletion

File tree

docs/netlify.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[build]
2+
base = "docs"
3+
publish = ".next"
4+
command = "pnpm --filter @snaplet/documentation build"
5+
[build.environment]
6+
NODE_VERSION = "20.12.2"
7+
[[plugins]]
8+
package = "@netlify/plugin-nextjs"

docs/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
"main": "index.js",
66
"scripts": {
77
"format": "remark . --output",
8-
"test": "echo \"Error: no test specified\" && exit 1"
8+
"dev": "next dev",
9+
"build": "next build",
10+
"start": "next start"
911
},
1012
"keywords": [],
1113
"author": "",
@@ -25,6 +27,7 @@
2527
"react-dom": "18.2.0"
2628
},
2729
"devDependencies": {
30+
"@netlify/plugin-nextjs": "^5.6.0",
2831
"@types/node": "20.12.3",
2932
"@types/react": "18.2.74",
3033
"autoprefixer": "10.4.19",

docs/pnpm-lock.yaml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)