-
Notifications
You must be signed in to change notification settings - Fork 80
Expand file tree
/
Copy pathnetlify.toml
More file actions
20 lines (17 loc) · 1.12 KB
/
Copy pathnetlify.toml
File metadata and controls
20 lines (17 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Netlify builds deploy previews for pull requests. Without this file it
# auto-detects, and auto-detection cannot work on this repo: the site lives in
# examples/, but it resolves the library from ../src through a Vite alias, so it
# has to be built from the repo root. The root `build` script builds the library
# into lib/, which is not a website.
# Storybook is nested under the demo so that one deploy serves both, matching
# the layout deploy-demo.yml publishes to Pages. Without it a deploy preview has
# no way to show a story, which is where new props are demonstrated.
[build]
command = "pnpm --filter react-xarrows-examples run build && pnpm --filter react-xarrows-examples run build-storybook && cp -r examples/dist-storybook examples/dist/storybook"
publish = "examples/dist"
[build.environment]
# Matches the version CI runs. jsdom 30 and Vite 8 both want Node 22+.
NODE_VERSION = "22"
# GITHUB_PAGES is deliberately not set here. examples/vite.config.ts reads it to
# decide between the /react-xarrows/ base that GitHub Pages needs and the root
# base that Netlify serves from. Setting it would break every asset URL.