Skip to content

Commit bc8c55f

Browse files
committed
Deploy new site on preview too
Signed-off-by: Charlie Egan <[email protected]>
1 parent ff46cc7 commit bc8c55f

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ endif
466466
netlify-prod: clean docs-clean build docs-production-build docs-new-site
467467

468468
.PHONY: netlify-preview
469-
netlify-preview: clean docs-clean build docs-live-blocks-install-deps docs-live-blocks-test docs-dev-generate docs-preview-build
469+
netlify-preview: clean docs-clean build docs-live-blocks-install-deps docs-dev-generate docs-preview-build docs-new-site
470470

471471
# Kept for compatibility. Use `make fuzz` instead.
472472
.PHONY: check-fuzz

docs/Makefile

+7-5
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,13 @@ preview-build:
8888
--buildDrafts \
8989
--buildFuture \
9090
--ignoreCache
91-
make live-blocks-inject
91+
# this is not compatible with node 22
92+
# make live-blocks-inject
9293

9394
.PHONY: new-site
9495
new-site:
95-
cd new
96-
npm ci
97-
npx docusaurus build
98-
cp -r build/. ../website/public/new
96+
cd new && \
97+
npm ci && \
98+
npx docusaurus build && \
99+
mkdir -p ../website/public/new && \
100+
cp -r build/. ../website/public/new

docs/new/package.json

+3
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,8 @@
1616
"md-front-matter": "^1.0.4",
1717
"raw-loader": "^4.0.2",
1818
"react-markdown": "^10.1.0"
19+
},
20+
"engines": {
21+
"node": ">=22.0.0"
1922
}
2023
}

netlify.toml

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ function = "badge"
1616
HUGO_VERSION = "0.113.0"
1717

1818
[context.deploy-preview]
19+
environment = { NODE_VERSION = "22.15.0" }
1920
command = "make netlify-preview WASM_ENABLED=0 CGO_ENABLED=0"
2021

2122
[context.branch-deploy]

0 commit comments

Comments
 (0)