Skip to content

Commit

Permalink
chore: add netlify.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
wangxingkang committed May 21, 2024
1 parent 67ba107 commit 86ccca1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[build]
publish = "website/build"
command = "pnpm run docs:build"

[build.environment]
NODE_OPTIONS = "--max_old_space_size=4096"
NODE_VERSION = "18"

[[redirects]]
from = "/*"
to = "/index.html"
status = 200
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"private": true,
"description": "Collection of essential React Utilities",
"scripts": {
"start": "pnpm -r --filter website run start",
"build": "walrus build-run",
"build:website": "pnpm -r --filter website run build",
"build:rollup": "NODE_OPTIONS=\"--max-old-space-size=6144\" rollup --config=rollup.config.ts --configPlugin=rollup-plugin-esbuild",
"docs": "pnpm -r --filter website run start",
"docs:build": "pnpm -r --filter website run build",
"clean": "rimraf --glob dist types \"packages/*/dist\"",
"test": "vitest",
"test:coverage": "vitest run --coverage",
Expand Down

0 comments on commit 86ccca1

Please sign in to comment.